mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-05-05 12:01:57 +08:00
add vscode debug support. please see https://learningos.github.io/rust-based-os-comp2022/0setup-devel-env.html#vscode for more usage details
This commit is contained in:
@@ -15,3 +15,7 @@ riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
spin = "0.9"
|
||||
lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -51,4 +51,7 @@ debug: build
|
||||
tmux split-window -h "riscv64-unknown-elf-gdb -ex 'file $(KERNEL_ELF)' -ex 'set arch riscv:rv64' -ex 'target remote localhost:1234'" && \
|
||||
tmux -2 attach-session -d
|
||||
|
||||
dbg: build
|
||||
qemu-system-riscv64 -machine virt -nographic -bios $(BOOTLOADER) -device loader,file=$(KERNEL_BIN),addr=$(KERNEL_ENTRY_PA) -s -S
|
||||
|
||||
.PHONY: build env kernel clean run-inner
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pub const USER_STACK_SIZE: usize = 4096 * 2;
|
||||
pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
||||
pub const KERNEL_STACK_SIZE: usize = 4096 * 20;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x30_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
Reference in New Issue
Block a user