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>
This commit is contained in:
LoGin 2025-07-08 00:28:21 +08:00 committed by GitHub
parent 7fb7701e19
commit 33c42e7dfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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") {