Will GRUB (legacy) corrupt BIOS 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
songziming
Member
Member
Posts: 71
Joined: Fri Jun 28, 2013 1:48 am
Contact:

Will GRUB (legacy) corrupt BIOS data

Post by songziming »

I use GRUB Legacy to boot my kernel, and my kernel use information from BIOS data area. So I just wonder will GRUB corrupt the content of the BIOS data area, since GRUB need space for itself and the kernel it's loading.
Reinventing the Wheel, code: https://github.com/songziming/wheel
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Will GRUB (legacy) corrupt BIOS data

Post by Brendan »

Hi,
songziming wrote:I use GRUB Legacy to boot my kernel, and my kernel use information from BIOS data area. So I just wonder will GRUB corrupt the content of the BIOS data area, since GRUB need space for itself and the kernel it's loading.
The multi-boot specification states that the boot loader must leave the firmware in a usable state (e.g. so that the OS can return to real mode and use the BIOS). This mostly means GRUB should not corrupt the BIOS data area (if the OS uses multi-boot).


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Post Reply