Actually clear the stack after calling functions

This commit is contained in:
Pierre Pronchery 2018-05-27 15:53:02 +02:00
parent 88abf0ddfd
commit 7c68d824e3

View File

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