From cd9da0edc6a7838353948a394748a4a16dd47b83 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 23 Sep 2019 23:14:12 +0200 Subject: Further tried developing a working VESA driver (failing) --- src/kernel/boot.asm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/kernel/boot.asm') 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 -- cgit v1.2.3