diff options
Diffstat (limited to 'src/kernel/boot.asm')
-rw-r--r-- | src/kernel/boot.asm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/boot.asm b/src/kernel/boot.asm index 5ee93f0..98b122c 100644 --- a/src/kernel/boot.asm +++ b/src/kernel/boot.asm @@ -1,6 +1,8 @@ -[BITS 32] global start start: + [BITS 16] + call search_video_mode + [bits 32] mov esp, _sys_stack ; Points stack to stack area jmp stublet @@ -29,6 +31,7 @@ mboot: dd start ; Endless loop +[bits 32] stublet: extern kernel_main call kernel_main @@ -42,7 +45,7 @@ stublet: %include "src/kernel/interrupts/irq.asm" -; %include "src/kernel/graphics/vesa.asm" +%include "src/kernel/graphics/vesa.asm" ; Store the stack SECTION .bss |