ia64/xen-unstable

changeset 9889:922f95ab88e4

When boot device is cdrom but the cdrom is not bootable, the guest appears
to hang. This patch fixes this by filling in second- and third-priority
fallback boot devices.

Signed-off by: Chen Jun <chenjunb@lenovo.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Apr 28 14:33:40 2006 +0100 (2006-04-28)
parents 59161a85a281
children a779d642c22a
files tools/ioemu/hw/pc.c
line diff
     1.1 --- a/tools/ioemu/hw/pc.c	Fri Apr 28 14:31:47 2006 +0100
     1.2 +++ b/tools/ioemu/hw/pc.c	Fri Apr 28 14:33:40 2006 +0100
     1.3 @@ -166,14 +166,20 @@ static void cmos_init(uint64_t ram_size,
     1.4      switch(boot_device) {
     1.5      case 'a':
     1.6      case 'b':
     1.7 -        rtc_set_memory(s, 0x3d, 0x01); /* floppy boot */
     1.8 +        //rtc_set_memory(s, 0x3d, 0x01); /* floppy boot */
     1.9 +        rtc_set_memory(s, 0x3d, 0x21);   /* a->c->d */
    1.10 +        rtc_set_memory(s, 0x38, 0x30);
    1.11          break;
    1.12      default:
    1.13      case 'c':
    1.14 -        rtc_set_memory(s, 0x3d, 0x02); /* hard drive boot */
    1.15 +        //rtc_set_memory(s, 0x3d, 0x02); /* hard drive boot */
    1.16 +        rtc_set_memory(s, 0x3d, 0x32);   /* c->d->a */
    1.17 +        rtc_set_memory(s, 0x38, 0x10);
    1.18          break;
    1.19      case 'd':
    1.20 -        rtc_set_memory(s, 0x3d, 0x03); /* CD-ROM boot */
    1.21 +        //rtc_set_memory(s, 0x3d, 0x03); /* CD-ROM boot */
    1.22 +        rtc_set_memory(s, 0x3d, 0x23);   /* d->c->a */
    1.23 +        rtc_set_memory(s, 0x38, 0x10);
    1.24          break;
    1.25      }
    1.26