Accessing multiboot data

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
oli2
Posts: 4
Joined: Thu Jul 28, 2022 1:25 pm
Libera.chat IRC: oli2

Accessing multiboot data

Post by oli2 »

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?
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: Accessing multiboot data

Post by Octocontrabass »

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.
Post Reply