diff cos/kernel/goto64.asm @ 34:8012221dd740

Fixes for uninitialized data. This causes problems on real machines
author windel
date Mon, 16 Jan 2012 13:46:06 +0100
parents d8185ddb6c7b
children bcb3b68c8147
line wrap: on
line diff
--- a/cos/kernel/goto64.asm	Sun Jan 15 13:39:49 2012 +0100
+++ b/cos/kernel/goto64.asm	Mon Jan 16 13:46:06 2012 +0100
@@ -97,6 +97,8 @@
 ; here ebx contains the pointer to the multiboot header, store is for later use.
 extern multiboot_info
 mov [multiboot_info], ebx
+xor ebx, ebx
+mov [multiboot_info + 4], ebx ; zero the rest of 64 bits address.
 
 ; Check that the CPU supports long mode:
 mov eax, 80000000h