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:
Michael Shaw 2023-04-21 17:56:06 -04:00
commit 7bddf838fd
3 changed files with 14 additions and 2 deletions

View file

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

View file