diff options
Diffstat (limited to 'bootblocks/boot_win.c')
-rw-r--r-- | bootblocks/boot_win.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootblocks/boot_win.c b/bootblocks/boot_win.c index e38eebb..5fb5693 100644 --- a/bootblocks/boot_win.c +++ b/bootblocks/boot_win.c @@ -49,6 +49,13 @@ main() if (rv != 0 || bs_buf[510] != 0x55 || bs_buf[511] != (char)0xAA) { cprintf("Hard disk not bootable.\n"); floppy_only = 1; + + /* Check for zapped MBR */ + for(i=0; i<512; i++) { + if (bs_buf[i]) break; + if (i==511) + boot_floppy(); + } } if (!floppy_only) { |