diff options
Diffstat (limited to 'src/kernel/boot.asm')
-rw-r--r-- | src/kernel/boot.asm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/kernel/boot.asm b/src/kernel/boot.asm index 98b122c..116fa32 100644 --- a/src/kernel/boot.asm +++ b/src/kernel/boot.asm @@ -1,9 +1,9 @@ +[bits 32] global start start: - [BITS 16] - call search_video_mode - [bits 32] mov esp, _sys_stack ; Points stack to stack area + extern init_graphics + call init_graphics jmp stublet ; Align with 4 Bytes @@ -31,12 +31,13 @@ mboot: dd start ; Endless loop -[bits 32] stublet: extern kernel_main call kernel_main jmp $ +%include "src/kernel/graphics/vesa.asm" + %include "src/kernel/gdt/gdt.asm" %include "src/kernel/interrupts/idt.asm" @@ -45,8 +46,6 @@ stublet: %include "src/kernel/interrupts/irq.asm" -%include "src/kernel/graphics/vesa.asm" - ; Store the stack SECTION .bss resb 8192 ; Reserve 8KiB |