From 586ada7a148d350a7d699c35cf8a0b30bc829e77 Mon Sep 17 00:00:00 2001 From: etaIneLp <33374857+etaIneLp@users.noreply.github.com> Date: Fri, 31 Jul 2020 15:54:58 -0400 Subject: [PATCH] Kernel: Tell the bootloader to put us into graphics mode --- Kernel/Arch/i386/Boot/boot.S | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Kernel/Arch/i386/Boot/boot.S b/Kernel/Arch/i386/Boot/boot.S index 954ce300a4..4fce416868 100644 --- a/Kernel/Arch/i386/Boot/boot.S +++ b/Kernel/Arch/i386/Boot/boot.S @@ -1,7 +1,8 @@ .set MULTIBOOT_MAGIC, 0x1badb002 .set MULTIBOOT_PAGE_ALIGN, 0x1 .set MULTIBOOT_MEMORY_INFO, 0x2 -.set multiboot_flags, MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO +.set MULTIBOOT_VIDEO_MODE, 0x4 +.set multiboot_flags, MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO | MULTIBOOT_VIDEO_MODE .set multiboot_checksum, -(MULTIBOOT_MAGIC + multiboot_flags) .section .multiboot @@ -19,6 +20,12 @@ .long 0x00000000 /* bss_end_addr */ .long 0x00000000 /* entry_addr */ +/* for MULTIBOOT_VIDEO_MODE */ +.long 0x00000000 /* mode_type */ +.long 1280 /* width */ +.long 1024 /* height */ +.long 32 /* depth */ + .section .stack, "aw", @nobits stack_bottom: .skip 32768