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:
parent
7fb7701e19
commit
33c42e7dfb
1
Makefile
1
Makefile
|
@ -167,7 +167,6 @@ log-monitor:
|
||||||
update-submodules:
|
update-submodules:
|
||||||
@echo "更新子模块"
|
@echo "更新子模块"
|
||||||
@git submodule update --recursive --init
|
@git submodule update --recursive --init
|
||||||
@git submodule foreach git pull origin master
|
|
||||||
|
|
||||||
.PHONY: update-submodules-by-mirror
|
.PHONY: update-submodules-by-mirror
|
||||||
update-submodules-by-mirror:
|
update-submodules-by-mirror:
|
||||||
|
|
|
@ -1688,8 +1688,8 @@ unsafe fn dealloc_from_kernel_space(vaddr: VirtAddr, paddr: PhysAddr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl KernelStack {
|
impl KernelStack {
|
||||||
pub const SIZE: usize = 0x4000;
|
pub const SIZE: usize = 0x8000;
|
||||||
pub const ALIGN: usize = 0x4000;
|
pub const ALIGN: usize = 0x8000;
|
||||||
|
|
||||||
pub fn new() -> Result<Self, SystemError> {
|
pub fn new() -> Result<Self, SystemError> {
|
||||||
if cfg!(feature = "kstack_protect") {
|
if cfg!(feature = "kstack_protect") {
|
||||||
|
|
Loading…
Reference in New Issue