diff --git a/bootloader/rustsbi-k210.bin b/bootloader/rustsbi-k210.bin index 158bfa4c..c53ed1fc 100755 Binary files a/bootloader/rustsbi-k210.bin and b/bootloader/rustsbi-k210.bin differ diff --git a/bootloader/rustsbi-qemu.bin b/bootloader/rustsbi-qemu.bin index 76e0e59e..ddbf336a 100755 Binary files a/bootloader/rustsbi-qemu.bin and b/bootloader/rustsbi-qemu.bin differ diff --git a/os/Cargo.toml b/os/Cargo.toml index 43768d78..25e91d10 100644 --- a/os/Cargo.toml +++ b/os/Cargo.toml @@ -8,4 +8,7 @@ edition = "2018" [dependencies] riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] } -lazy_static = { version = "1.4.0", features = ["spin_no_std"] } \ No newline at end of file +lazy_static = { version = "1.4.0", features = ["spin_no_std"] } + +[profile.release] +debug = true diff --git a/os/Makefile b/os/Makefile index 14c2cffc..5dcf0797 100644 --- a/os/Makefile +++ b/os/Makefile @@ -1,6 +1,6 @@ # Building TARGET := riscv64gc-unknown-none-elf -MODE := debug +MODE := release KERNEL_ELF := target/$(TARGET)/$(MODE)/os KERNEL_BIN := $(KERNEL_ELF).bin DISASM_TMP := target/$(TARGET)/$(MODE)/asm @@ -104,4 +104,4 @@ gdbserver: build gdbclient: @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 diff --git a/user/Cargo.toml b/user/Cargo.toml index b7518dde..b11dcccc 100644 --- a/user/Cargo.toml +++ b/user/Cargo.toml @@ -8,3 +8,6 @@ edition = "2018" [dependencies] riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] } + +[profile.release] +debug = true