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

Kernel: Implement generic VGA device using multiboot info

This implements a very basic VGA device using the information provided
to us by the bootloader in the multiboot header. This allows Serenity to
boot to the desktop on basically any halfway modern system.
This commit is contained in:
Conrad Pankoff 2019-08-18 14:54:52 +10:00 committed by Andreas Kling
parent 23b6ef29dd
commit b957c61e6f
5 changed files with 148 additions and 4 deletions

View file

@ -1,7 +1,7 @@
.set MULTIBOOT_MAGIC, 0x1badb002
.set MULTIBOOT_PAGE_ALIGN, 0x1
.set MULTIBOOT_MEMORY_INFO, 0x2
.set MULTIBOOT_VIDEO_MODE, 0x0
.set MULTIBOOT_VIDEO_MODE, 0x4
.set multiboot_flags, MULTIBOOT_PAGE_ALIGN | MULTIBOOT_MEMORY_INFO | MULTIBOOT_VIDEO_MODE
.set multiboot_checksum, -(MULTIBOOT_MAGIC + multiboot_flags)
@ -22,8 +22,8 @@
/* for MULTIBOOT_VIDEO_MODE */
.long 0x00000000 /* mode_type */
.long 0 /* width */
.long 0 /* height */
.long 1024 /* width */
.long 768 /* height */
.long 32 /* depth */
.section .stack, "aw", @nobits