Преглед изворни кода

refactor(kernel): 增加内核栈大小从0x4000到0x8000 (#1230)

* refactor(kernel): 增加内核栈大小从0x4000到0x8000

修改KernelStack的SIZE和ALIGN常量值,将内核栈大小从16KB增加到32KB。

Signed-off-by: longjin <longjin@DragonOS.org>

* fix: 修复update submodules的时候没能正确checkout到远程的commit的问题

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
LoGin пре 23 часа
родитељ
комит
33c42e7dfb
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 0 1
      Makefile
  2. 2 2
      kernel/src/process/mod.rs

+ 0 - 1
Makefile

@@ -167,7 +167,6 @@ log-monitor:
 update-submodules:
 	@echo "更新子模块"
 	@git submodule update --recursive --init
-	@git submodule foreach git pull origin master
 
 .PHONY: update-submodules-by-mirror
 update-submodules-by-mirror:

+ 2 - 2
kernel/src/process/mod.rs

@@ -1688,8 +1688,8 @@ unsafe fn dealloc_from_kernel_space(vaddr: VirtAddr, paddr: PhysAddr) {
 }
 
 impl KernelStack {
-    pub const SIZE: usize = 0x4000;
-    pub const ALIGN: usize = 0x4000;
+    pub const SIZE: usize = 0x8000;
+    pub const ALIGN: usize = 0x8000;
 
     pub fn new() -> Result<Self, SystemError> {
         if cfg!(feature = "kstack_protect") {