1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07:45 +00:00

Kernel: Tell the bootloader to put us into graphics mode

This commit is contained in:
etaIneLp 2020-07-31 15:54:58 -04:00 committed by Andreas Kling
parent 040848a2af
commit 586ada7a14

View file

@ -1,7 +1,8 @@
.set MULTIBOOT_MAGIC, 0x1badb002 .set MULTIBOOT_MAGIC, 0x1badb002
.set MULTIBOOT_PAGE_ALIGN, 0x1 .set MULTIBOOT_PAGE_ALIGN, 0x1
.set MULTIBOOT_MEMORY_INFO, 0x2 .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) .set multiboot_checksum, -(MULTIBOOT_MAGIC + multiboot_flags)
.section .multiboot .section .multiboot
@ -19,6 +20,12 @@
.long 0x00000000 /* bss_end_addr */ .long 0x00000000 /* bss_end_addr */
.long 0x00000000 /* entry_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 .section .stack, "aw", @nobits
stack_bottom: stack_bottom:
.skip 32768 .skip 32768