Actually clear the stack after calling functions
This commit is contained in:
parent
88abf0ddfd
commit
7c68d824e3
|
@ -65,11 +65,11 @@ _start:
|
||||||
/* start the kernel */
|
/* start the kernel */
|
||||||
push %ebx
|
push %ebx
|
||||||
call main
|
call main
|
||||||
sub $0x4, %esp
|
add $0x4, %esp
|
||||||
|
|
||||||
/* exit the kernel */
|
/* exit the kernel */
|
||||||
push %eax
|
push %eax
|
||||||
call exit
|
call exit
|
||||||
sub $0x4, %esp
|
add $0x4, %esp
|
||||||
|
|
||||||
hlt
|
hlt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user