diff options
author | Robert de Bath <rdebath@poboxes.com> | 2004-06-04 20:33:25 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:48:49 +0200 |
commit | 6cb598cc5f1c8ae6d14381c2776338584368257e (patch) | |
tree | 9e0de9772314990061ca96735910ea5db8d4e778 /bootblocks | |
parent | beba34dc223aa0dcf3e5f696966c5e8408b022c3 (diff) | |
download | dev86-6cb598cc5f1c8ae6d14381c2776338584368257e.tar.gz |
Import Dev86src-0.16.16.tar.gzv0.16.16
Diffstat (limited to 'bootblocks')
-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) { |