- use "add esp,4" to remove the last element on the stack

git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@186 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
stefan 2010-10-20 15:39:36 +00:00
parent b0e600da99
commit d66ac69333

View file

@ -33,7 +33,7 @@ start:
; This part MUST be 4byte aligned, so we solve that issue using 'ALIGN 4'
ALIGN 4
mboot:
; Multiboot macros to make a few lines later more readable
; Multiboot macros to make a few lines more readable later
MULTIBOOT_PAGE_ALIGN equ 1<<0
MULTIBOOT_MEMORY_INFO equ 1<<1
MULTIBOOT_AOUT_KLUDGE equ 1<<16
@ -61,9 +61,9 @@ stublet:
extern multiboot_init
push ebx
call multiboot_init
pop ebp
add esp, 4
; This is an endless loop here. Make a note of this: Later on, we
; This is an endless loop. Make a note of this: Later on, we
; will insert an 'extern _main', followed by 'call _main', right
; before the 'jmp $'.
extern main
@ -479,7 +479,7 @@ global reschedule
reschedule:
cli
; eax could change across a function call
; => we have not to save the original eax value
; => so we don't have to save the original eax value
push ebx
call get_current_task