1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[mbr] "Press any key to boot from USB..."

* Adds an MBR to prompt the use about USB or HDD boot
* If USB boot is not selected, an INT13h override is added to
  make the second bootable drive think it is first (0x81 -> 0x80)
* USB drive BIOS index is left unmodified
This commit is contained in:
Pete Batard 2012-03-20 02:56:34 +00:00
parent 4bd017ff07
commit 0f57ed1684
5 changed files with 406 additions and 6 deletions

7
res/mbr/mbr.ld Normal file
View file

@ -0,0 +1,7 @@
OUTPUT_ARCH(i8086)
MEMORY { MBR (rx) : org = 0x7c00 , len = 0x200 }
SECTIONS {
ENTRY(mbr)
.main 0x7c00 : { *(main) }
.igot 0x0000 : { *(.igot.plt) }
}