Setting the VBE video modes using GRUB 2
Posted: Mon Jul 08, 2019 1:06 am
I'm coding a simple toy OS in Assembly and C.
I'm trying to get a VBE video mode set by GRUB 2, but I simply don't know how. The OS is running in 32-bit protected mode, but I'm interested in having a hi-res video mode. The kernel is running above 1 MB sadly, so I can't just switch to real mode and back without copying code into the <1MB mark (which I can't figure out how). I haven't implemented userland yet, so vm86 won't work.
How do I set a VBE video mode using GRUB 2?
I'm trying to get a VBE video mode set by GRUB 2, but I simply don't know how. The OS is running in 32-bit protected mode, but I'm interested in having a hi-res video mode. The kernel is running above 1 MB sadly, so I can't just switch to real mode and back without copying code into the <1MB mark (which I can't figure out how). I haven't implemented userland yet, so vm86 won't work.
How do I set a VBE video mode using GRUB 2?