mem: initialize the stacks
the stacks will now no longer be overwritten by the buddy allocator and have a fixed size macro `KSTACK_SIZE`
This commit is contained in:
parent
159ceec0a2
commit
7bddf838fd
3 changed files with 14 additions and 2 deletions
|
|
@ -28,3 +28,9 @@ rsp_write:
|
|||
rbp_write:
|
||||
movq %rdi, %rbp
|
||||
ret
|
||||
|
||||
.global stack_init
|
||||
stack_init:
|
||||
movq %rdi, %rsp
|
||||
movq %rsi, %rbp
|
||||
call yield
|
||||
|
|
|
|||
Loading…
Reference in a new issue