Let's say I'd like to start a small linux distro before my ordinary operating system start.
- BIOS load MBR and execute MBR.
- MBR locates the active partition which is my linux partition.
- Linux start and I perform what I need to do.
- Linux shut down and I switch to Real Mode again.
- The original partition boot sector is loaded and my ordinary OS start.
AFAIK, step 4 will be the difficult task, restore the state on all devices prior to linux, will INT13h be functional? Do I need to restore the Interrupt Vector Table? To mention a few.
Has this been done in any existing project perhaps?