I am writing my own bootloader and would like to make it possible to chainload it using grub2.
- In which registers does grub pass the drive number and the partition entry point?
- Is there a specification in which registers they should regularely be passed?
- Can I make grub use registers of my choice?
Update:
In the grub legacy manual for the 'root' command it says that ES:ESI are used. During my research I found out that normally DL:SI should be used. (Grub MBR does that itself, as pointed out in the comments). Grub2 manual doesn't say anything about that. So, any ideas why grub legacy uses ES:ESI instead of DL:SI and what does grub2 actually use?