Accessing multiboot data
Accessing multiboot data
I know that you can specify what data you want a multiboot compliant bootloader to return, but I don’t understand how to do this. Also, where would this data be returned?
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Accessing multiboot data
You specify it in your Multiboot or Multiboot2 header. The specifics depend on which version of Multiboot you're using.
When the bootloader jumps to your kernel's entry point, the EBX register will contain a pointer to the Multiboot information structure. You can parse that structure to get the information you requested in your Multiboot header.
When the bootloader jumps to your kernel's entry point, the EBX register will contain a pointer to the Multiboot information structure. You can parse that structure to get the information you requested in your Multiboot header.