console vga stuff

This commit is contained in:
2026-07-14 17:40:30 -05:00
parent 454de8feed
commit 6a79a20cf6
15 changed files with 456 additions and 559 deletions

View File

@@ -1,9 +1,10 @@
.set ALIGN, 1<<0 /* align loaded modules on page boundaries */
.set MEMINFO, 1<<1 /* provide memory map */
.set GRAPHICS, 1<<2 /* <-- NEW: Request video mode table/framebuffer from GRUB */
.set FLAGS, ALIGN | MEMINFO | GRAPHICS /* Updated to include GRAPHICS */
.set MAGIC, 0x1BADB002 /* 'magic number' lets bootloader find the header */
.set CHECKSUM, -(MAGIC + FLAGS) /* recalculated checksum of the new flags */
.set ALIGN, 1<<0
.set MEMINFO, 1<<1
.set GRAPHICS, 1<<2
.set FLAGS, ALIGN | MEMINFO | GRAPHICS
.set MAGIC, 0x1BADB002
.set CHECKSUM, -(MAGIC + FLAGS)
.section .multiboot, "a"
.align 4
@@ -46,7 +47,6 @@ higher:
mov $0xC0000000, %eax
add %eax, %ebx
push %ebx
push %eax
call kmain
loop:
hlt