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 */
push %ebx
call main
sub $0x4, %esp
add $0x4, %esp
/* exit the kernel */
push %eax
call exit
sub $0x4, %esp
add $0x4, %esp
hlt