OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 9:24 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Accessing multiboot data
PostPosted: Fri Jul 29, 2022 7:28 am 
Offline

Joined: Thu Jul 28, 2022 1:25 pm
Posts: 4
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?


Top
 Profile  
 
 Post subject: Re: Accessing multiboot data
PostPosted: Fri Jul 29, 2022 10:26 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], SemrushBot [Bot] and 57 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group