Rollback rustsbi & drop debug mode support

This commit is contained in:
Yifan Wu 2022-04-16 15:21:08 -07:00
parent 0506c80126
commit 714c789133
5 changed files with 9 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -8,4 +8,7 @@ edition = "2018"
[dependencies] [dependencies]
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] } riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
lazy_static = { version = "1.4.0", features = ["spin_no_std"] } lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
[profile.release]
debug = true

View File

@ -1,6 +1,6 @@
# Building # Building
TARGET := riscv64gc-unknown-none-elf TARGET := riscv64gc-unknown-none-elf
MODE := debug MODE := release
KERNEL_ELF := target/$(TARGET)/$(MODE)/os KERNEL_ELF := target/$(TARGET)/$(MODE)/os
KERNEL_BIN := $(KERNEL_ELF).bin KERNEL_BIN := $(KERNEL_ELF).bin
DISASM_TMP := target/$(TARGET)/$(MODE)/asm DISASM_TMP := target/$(TARGET)/$(MODE)/asm
@ -104,4 +104,4 @@ gdbserver: build
gdbclient: gdbclient:
@riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234' @riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'
.PHONY: build env kernel clean disasm disasm-vim run-inner switch-check gdbserver .PHONY: build env kernel clean disasm disasm-vim run-inner switch-check gdbserver gdbclient

View File

@ -8,3 +8,6 @@ edition = "2018"
[dependencies] [dependencies]
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] } riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
[profile.release]
debug = true