From a5590116d22e40b29765866f21702bb526b23d18 Mon Sep 17 00:00:00 2001 From: zhangxinyu <840317537@qq.com> Date: Mon, 12 Jun 2023 11:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9os=E7=9A=84=E5=86=85=E5=AD=98?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch5/os/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch5/os/src/config.rs b/ch5/os/src/config.rs index 2bf0d55..c2c7fcc 100644 --- a/ch5/os/src/config.rs +++ b/ch5/os/src/config.rs @@ -2,7 +2,7 @@ pub const MAX_APP_NUM: usize = 10; // 支持最大的用户应用数量 pub const KERNEL_HEAP_SIZE: usize = 0x30_0000; // 内核的堆大小 3M pub const PAGE_SIZE_BITS: usize = 0xc; // 页内偏移的位宽(也就是每页的大小) pub const PAGE_SIZE: usize = 0x1000; // 每个页 的字节大小为 4kb -pub const MEMORY_END: usize = 0x80800000; // 设置我们当前操作系统最大只能用到 0x80800000-0x80000000大小的内存也就是8M +pub const MEMORY_END: usize = 0x81000000; // 设置我们当前操作系统最大只能用到 0x80800000-0x80000000大小的内存也就是8M pub const USER_STACK_SIZE: usize = 4096 * 2; // 每个应用用户态的栈大小为8kb pub const KERNEL_STACK_SIZE: usize = 4096 * 2; // 每个应用的内核栈