I know that I should have done this a LONG time ago, but I kind of forgot to do it when I implemented the graphics for my OS. I only realized that I had hard coded the graphics pointer when I tried running my OS in QEMU, instead of VirtualBox.
I'm passing flags to multiboot GRUB so that it can change the graphics mode before switching to pmode.
So, how exactly do I get the video pointer?
Getting GRUB video pointer
Re: Getting GRUB video pointer
The multiboot specifications tell you where to find the information.
https://www.gnu.org/software/grub/manua ... cification
https://www.gnu.org/software/grub/manua ... cification
- abcdef4bfd
- Member
- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: Getting GRUB video pointer
You need to get a Multiboot structure that GRUB passes, video info is included in it along with a ton of other very useful info.
- eryjus
- Member
- Posts: 286
- Joined: Fri Oct 21, 2011 9:47 pm
- Libera.chat IRC: eryjus
- Location: Tustin, CA USA
Re: Getting GRUB video pointer
I actually found the source to be more valuable. https://github.com/coreos/grub/blob/mas ... ultiboot.hiansjack wrote:The multiboot specifications tell you where to find the information.
https://www.gnu.org/software/grub/manua ... cification
it contains some undocumented extensions which I found to be implemented in my grub2 loader.
Adam
The name is fitting: Century Hobby OS -- At this rate, it's gonna take me that long!
Read about my mistakes and missteps with this iteration: Journal
"Sometimes things just don't make sense until you figure them out." -- Phil Stahlheber
The name is fitting: Century Hobby OS -- At this rate, it's gonna take me that long!
Read about my mistakes and missteps with this iteration: Journal
"Sometimes things just don't make sense until you figure them out." -- Phil Stahlheber
- obiwac
- Member
- Posts: 149
- Joined: Fri Jan 27, 2017 12:15 pm
- Libera.chat IRC: obiwac
- Location: Belgium
Re: Getting GRUB video pointer
Ok thanks! It be working now!