From 1b11ecb5b180f15c9d82794fffd792268a5e8799 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 24 May 2015 09:56:07 +0200 Subject: [PATCH] forward in ebp the physical address of HermitCore --- hermit/tools/init.asm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hermit/tools/init.asm b/hermit/tools/init.asm index 1b0f36071..f2bac9850 100644 --- a/hermit/tools/init.asm +++ b/hermit/tools/init.asm @@ -37,9 +37,10 @@ _pmstart: xor ebx, ebx ; invalid multiboot address mov esp, -16 - push DWORD 0x00 ; dummy value - push DWORD 0x00 ; dummy value - jmp codesel : codeaddr + mov ebp, 0x00 ; dummy value + push DWORD 0x00 ; dummy value + push DWORD 0x00 ; dummy value + jmp codesel : 0x00 ; dummy value jmp $ ALIGN 4 @@ -63,5 +64,3 @@ datasel equ $-gdt db 0xCF ; additional informationen and degment size 16...19 db 0x00 ; segment address 24..31 gdt_end: - -codeaddr equ 0x1400000 ; address of the 32bit kernel