Skip to content

Commit

Permalink
Now set esp to 0xeffff0 to allow about 14mib of stack space
Browse files Browse the repository at this point in the history
  • Loading branch information
avan-pra committed Dec 14, 2023
1 parent 5ebdacc commit 6abe317
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions boot.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ extern main ;defined in the C file

start:
cli ;block interrupts
mov esp, stack_space ;set stack pointer
mov esp, 0xeffffc ;set stack pointer
call main
hlt ;halt the CPU

section .bss
resb 8192 ;8KB for stack
stack_space:

0 comments on commit 6abe317

Please sign in to comment.