by grahamedgecombe · 12y ago · 0 comments
An easy way to solve this is to reserve some bytes in the .bss section of the executable for the stack by adding a new section in the assembly file:
[section .bss align=16]
resb 8192
stack_end:
Then before you make use of the stack (between `cli` and `call kmain` would be appropriate in this case), you need to set the stack pointer: mov esp, stack_end
[1]: https://www.gnu.org/software/grub/manual/multiboot/multiboot...No comments yet.