comparison 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
comparison
equal deleted inserted replaced
33:d8185ddb6c7b 34:8012221dd740
95 ; Start of loader code: 95 ; Start of loader code:
96 loader: 96 loader:
97 ; here ebx contains the pointer to the multiboot header, store is for later use. 97 ; here ebx contains the pointer to the multiboot header, store is for later use.
98 extern multiboot_info 98 extern multiboot_info
99 mov [multiboot_info], ebx 99 mov [multiboot_info], ebx
100 xor ebx, ebx
101 mov [multiboot_info + 4], ebx ; zero the rest of 64 bits address.
100 102
101 ; Check that the CPU supports long mode: 103 ; Check that the CPU supports long mode:
102 mov eax, 80000000h 104 mov eax, 80000000h
103 cpuid 105 cpuid
104 cmp eax, 80000000h 106 cmp eax, 80000000h