From d66ac69333fa4aafb004d786c5a8e413b288004e Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 20 Oct 2010 15:39:36 +0000 Subject: [PATCH] - 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 --- arch/x86/kernel/entry.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/entry.asm b/arch/x86/kernel/entry.asm index 58ce63ad..0efabd40 100644 --- a/arch/x86/kernel/entry.asm +++ b/arch/x86/kernel/entry.asm @@ -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