mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-02-13 07:05: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:
@@ -7,7 +7,7 @@ use std::sync::Mutex;
|
||||
|
||||
/// Use a block size of 512 bytes
|
||||
const BLOCK_SZ: usize = 512;
|
||||
const BLOCK_NUM: usize = 16384;
|
||||
const BLOCK_NUM: usize = 131072; //64*2048
|
||||
|
||||
/// Wrapper for turning a File into a BlockDevice
|
||||
struct BlockFile(Mutex<File>);
|
||||
|
||||
@@ -8,3 +8,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -46,4 +46,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
|
||||
|
||||
@@ -8,3 +8,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
log = "0.4"
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -46,4 +46,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
|
||||
|
||||
@@ -10,3 +10,7 @@ edition = "2018"
|
||||
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
||||
log = "0.4"
|
||||
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -55,4 +55,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
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::trap::TrapContext;
|
||||
use lazy_static::*;
|
||||
|
||||
const USER_STACK_SIZE: usize = 4096;
|
||||
const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
||||
const KERNEL_STACK_SIZE: usize = 4096 * 20;
|
||||
const MAX_APP_NUM: usize = 16;
|
||||
const APP_BASE_ADDRESS: usize = 0x80400000;
|
||||
const APP_SIZE_LIMIT: usize = 0x20000;
|
||||
|
||||
@@ -10,3 +10,7 @@ edition = "2018"
|
||||
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
||||
log = "0.4"
|
||||
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -55,4 +55,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
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::trap::TrapContext;
|
||||
use lazy_static::*;
|
||||
|
||||
const USER_STACK_SIZE: usize = 4096;
|
||||
const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
||||
const KERNEL_STACK_SIZE: usize = 4096 * 20;
|
||||
const MAX_APP_NUM: usize = 16;
|
||||
const APP_BASE_ADDRESS: usize = 0x80400000;
|
||||
const APP_SIZE_LIMIT: usize = 0x20000;
|
||||
|
||||
@@ -11,3 +11,7 @@ buddy_system_allocator = "0.6"
|
||||
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
||||
log = "0.4"
|
||||
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -56,4 +56,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,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
pub const USER_STACK_SIZE: usize = 4096;
|
||||
pub const KERNEL_STACK_SIZE: usize = 4096 * 2;
|
||||
pub const KERNEL_STACK_SIZE: usize = 4096 * 20;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x20000;
|
||||
pub const MAX_APP_NUM: usize = 16;
|
||||
pub const APP_BASE_ADDRESS: usize = 0x80400000;
|
||||
|
||||
@@ -11,3 +11,7 @@ buddy_system_allocator = "0.6"
|
||||
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
|
||||
log = "0.4"
|
||||
riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -56,4 +56,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 = 8192;
|
||||
pub const KERNEL_STACK_SIZE: usize = 8192 * 2;
|
||||
pub const KERNEL_STACK_SIZE: usize = 8192 * 20;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x20000;
|
||||
pub const MAX_APP_NUM: usize = 16;
|
||||
pub const APP_BASE_ADDRESS: usize = 0x80400000;
|
||||
|
||||
@@ -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
|
||||
@@ -56,4 +56,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,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x80800000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -52,4 +52,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,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x20_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -15,3 +15,7 @@ riscv = { git = "https://github.com/rcore-os/riscv", features = ["inline-asm"] }
|
||||
spin = "0.9"
|
||||
xmas-elf = "0.7.0"
|
||||
lock_api = "=0.4.6"
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -52,4 +52,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;
|
||||
|
||||
@@ -16,3 +16,7 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -61,4 +61,11 @@ 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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x20_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -16,3 +16,7 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -61,4 +61,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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x20_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -16,3 +16,7 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -61,4 +61,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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x20_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -16,3 +16,7 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -61,4 +61,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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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 = 0x20_0000;
|
||||
pub const MEMORY_END: usize = 0x88000000;
|
||||
pub const PAGE_SIZE: usize = 0x1000;
|
||||
|
||||
@@ -16,3 +16,8 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
# opt-level = "s"
|
||||
@@ -61,4 +61,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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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;
|
||||
|
||||
@@ -16,3 +16,7 @@ lock_api = "=0.4.6"
|
||||
xmas-elf = "0.7.0"
|
||||
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers" }
|
||||
easy-fs = { path = "../easy-fs" }
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
opt-level = 0
|
||||
@@ -61,4 +61,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) -drive file=$(FS_IMG),if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 -s -S
|
||||
|
||||
.PHONY: build env kernel clean fs-img
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Constants used in rCore
|
||||
|
||||
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