projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891b38e
)
more hack for CMOS interruption (enable linux /dev/rtc not to hang) - auto boot on...
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 16 Nov 2003 19:46:01 +0000
(19:46 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 16 Nov 2003 19:46:01 +0000
(19:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@463
c046a42c
-6fe2-441c-8c8c-
71466251a162
vl.c
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index a4f3403985861624bbd2859e2549f1c60fc666d6..550443f8858345473df4e7a10ddda00fc685dcc0 100644
(file)
--- a/
vl.c
+++ b/
vl.c
@@
-2830,7
+2830,7
@@
int main_loop(void *opaque)
pic_set_irq(0, 0);
timer_irq_pending = 0;
/* XXX: RTC test */
- if (cmos_data[RTC_REG_B] & 0x
4
0) {
+ if (cmos_data[RTC_REG_B] & 0x
5
0) {
pic_set_irq(8, 1);
}
}
@@
-3058,6
+3058,10
@@
int main(int argc, char **argv)
if (!linux_boot && hd_filename[0] == '\0' && hd_filename[2] == '\0')
help();
+
+ /* boot to cd by default if no hard disk */
+ if (hd_filename[0] == '\0' && boot_device == 'c')
+ boot_device = 'd';
/* init debug */
setvbuf(stdout, NULL, _IOLBF, 0);