summaryrefslogtreecommitdiffstats
path: root/hw/pc.c
diff options
context:
space:
mode:
authorbellard2006-06-14 18:03:05 +0200
committerbellard2006-06-14 18:03:05 +0200
commit52ca8d6af01d140b1a022958bb5953f00bb7c714 (patch)
treefcc145155a5b690358da9071820c2356b92d3b82 /hw/pc.c
parentcocoa monitor fix regarding the handling of dead keys (Joachim Henke) (diff)
downloadqemu-52ca8d6af01d140b1a022958bb5953f00bb7c714.tar.gz
qemu-52ca8d6af01d140b1a022958bb5953f00bb7c714.tar.xz
qemu-52ca8d6af01d140b1a022958bb5953f00bb7c714.zip
-no-fd-bootchk option (Lonnie Mendez)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1976 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/pc.c b/hw/pc.c
index b722190277..361f4bb934 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -193,6 +193,8 @@ static void cmos_init(int ram_size, int boot_device, BlockDriverState **hd_table
case 'a':
case 'b':
rtc_set_memory(s, 0x3d, 0x01); /* floppy boot */
+ if (!fd_bootchk)
+ rtc_set_memory(s, 0x38, 0x01); /* disable signature check */
break;
default:
case 'c':
@@ -264,10 +266,6 @@ static void cmos_init(int ram_size, int boot_device, BlockDriverState **hd_table
}
}
rtc_set_memory(s, 0x39, val);
-
- /* Disable check of 0x55AA signature on the last two bytes of
- first sector of disk. XXX: make it the default ? */
- // rtc_set_memory(s, 0x38, 1);
}
void ioport_set_a20(int enable)