Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0dfL-0003Dg-4K for qemu-devel@nongnu.org; Sat, 10 Apr 2010 12:36:15 -0400 Received: from [140.186.70.92] (port=49125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0dfH-0003DY-Of for qemu-devel@nongnu.org; Sat, 10 Apr 2010 12:36:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0dfF-0000ed-6h for qemu-devel@nongnu.org; Sat, 10 Apr 2010 12:36:11 -0400 Received: from sinclair.provo.novell.com ([137.65.248.137]:26992) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0dfE-0000eE-6c for qemu-devel@nongnu.org; Sat, 10 Apr 2010 12:36:09 -0400 Message-Id: <4BC054930200004800092ADD@sinclair.provo.novell.com> Date: Sat, 10 Apr 2010 10:36:03 -0600 From: "Bruce Rogers" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=__PartA8822EE3.0__=" Subject: [Qemu-devel] [PATCH] Write cmos hd data for ide drives using -device parm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=__PartA8822EE3.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable When specifying ide devices using -device, the cmos information=20 which the bios depends on is not written. This patch generalizes=20 the cmos hd data setting for the existing code path and adds the=20 ability to call that code on a per machine, per ide drive basis.=20 This is important for older guests, such as Windows XP, and Windows=20 Server 2003.=20 I needed to add an id to the IDEBus structure since there wasn't=20 a way to identify whether an ide bus was primary or secondary in=20 the lower level code.=20 Signed-off-by: Bruce Rogers =20 Bruce=20 hw/ide/internal.h | 1 =20 hw/ide/piix.c | 2 +=20 hw/ide/qdev.c | 9 ++++++-=20 hw/pc.c | 68 ++++++++++++++++++++++++++++++++-----------------= -----=20 sysemu.h | 1 =20 vl.c | 6 ++++=20 6 files changed, 59 insertions(+), 28 deletions(-)=20 diff --git a/hw/ide/internal.h b/hw/ide/internal.h=20 index 027029e..b04232c 100644=20 --- a/hw/ide/internal.h=20 +++ b/hw/ide/internal.h=20 @@ -450,6 +450,7 @@ struct IDEBus {=20 IDEState ifs[2];=20 uint8_t unit;=20 uint8_t cmd;=20 + uint8_t id;=20 qemu_irq irq;=20 };=20 =20 diff --git a/hw/ide/piix.c b/hw/ide/piix.c=20 index 295a93d..f62aadb 100644=20 --- a/hw/ide/piix.c=20 +++ b/hw/ide/piix.c=20 @@ -136,6 +136,8 @@ static int pci_piix_ide_initfn(PCIIDEState *d)=20 ide_init_ioport(&d->bus[0], 0x1f0, 0x3f6);=20 ide_init_ioport(&d->bus[1], 0x170, 0x376);=20 =20 + d->bus[0].id =3D 0;=20 + d->bus[1].id =3D 1;=20 ide_init2(&d->bus[0], NULL, NULL, isa_reserve_irq(14));=20 ide_init2(&d->bus[1], NULL, NULL, isa_reserve_irq(15));=20 return 0;=20 diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c=20 index b18693d..632eccd 100644=20 --- a/hw/ide/qdev.c=20 +++ b/hw/ide/qdev.c=20 @@ -39,6 +39,7 @@ static int ide_qdev_init(DeviceState *qdev, DeviceInfo = *base)=20 IDEDevice *dev =3D DO_UPCAST(IDEDevice, qdev, qdev);=20 IDEDeviceInfo *info =3D DO_UPCAST(IDEDeviceInfo, qdev, base);=20 IDEBus *bus =3D DO_UPCAST(IDEBus, qbus, qdev->parent_bus);=20 + int i;=20 =20 if (!dev->conf.dinfo) {=20 fprintf(stderr, "%s: no drive specified\n", qdev->info->name);=20 @@ -65,7 +66,13 @@ static int ide_qdev_init(DeviceState *qdev, DeviceInfo = *base)=20 default:=20 goto err;=20 }=20 - return info->init(dev);=20 + dev->dinfo->bus =3D bus->id;=20 + dev->dinfo->unit =3D dev->unit;=20 + i =3D info->init(dev);=20 + if (i >=3D 0) {=20 + machine_ide_finalize(dev->dinfo);=20 + }=20 + return i;=20 =20 err:=20 return -1;=20 diff --git a/hw/pc.c b/hw/pc.c=20 index 69e597f..29f47d4 100644=20 --- a/hw/pc.c=20 +++ b/hw/pc.c=20 @@ -215,6 +215,44 @@ static void cmos_init_hd(int type_ofs, int info_ofs, = BlockDriverState *hd)=20 rtc_set_memory(s, info_ofs + 8, sectors);=20 }=20 =20 +static void set_cmos_hd_data(DriveInfo *dinfo)=20 +{=20 + static int hd_type =3D 0;=20 + static int hd_trans =3D 0;=20 + RTCState *s =3D rtc_state;=20 + int cylinders, heads, sectors, translation;=20 +=20 + if (dinfo->bus =3D=3D 0) {=20 + if (dinfo->unit =3D=3D 0) {=20 + hd_type |=3D 0xf0;=20 + cmos_init_hd(0x19, 0x1b, dinfo->bdrv);=20 + } else {=20 + hd_type |=3D 0x0f;=20 + cmos_init_hd(0x1a, 0x24, dinfo->bdrv);=20 + }=20 + rtc_set_memory(s, 0x12, hd_type);=20 + }=20 + /* NOTE: bdrv_get_geometry_hint() returns the physical=20 + geometry. It is always such that: 1 <=3D sects <=3D 63, 1=20 + <=3D heads <=3D 16, 1 <=3D cylinders <=3D 16383. The BIOS=20 + geometry can be different if a translation is done. */=20 + translation =3D bdrv_get_translation_hint(dinfo->bdrv);=20 + if (translation =3D=3D BIOS_ATA_TRANSLATION_AUTO) {=20 + bdrv_get_geometry_hint(dinfo->bdrv, &cylinders, &heads, §ors);= =20 + if (cylinders <=3D 1024 && heads <=3D 16 && sectors <=3D 63) {=20 + /* No translation. */=20 + translation =3D 0;=20 + } else {=20 + /* LBA translation. */=20 + translation =3D 1;=20 + }=20 + } else {=20 + translation--;=20 + }=20 + hd_trans |=3D translation << ((dinfo->bus * 4) + (dinfo->unit * = 2));=20 + rtc_set_memory(s, 0x39, hd_trans);=20 +}=20 +=20 /* convert boot_device letter to something recognizable by the bios */=20 static int boot_device2nibble(char boot_device)=20 {=20 @@ -338,37 +376,11 @@ static void cmos_init(ram_addr_t ram_size, ram_addr_t= above_4g_mem_size,=20 =20 /* hard drives */=20 =20 - rtc_set_memory(s, 0x12, (hd_table[0] ? 0xf0 : 0) | (hd_table[1] ? = 0x0f : 0));=20 - if (hd_table[0])=20 - cmos_init_hd(0x19, 0x1b, hd_table[0]->bdrv);=20 - if (hd_table[1])=20 - cmos_init_hd(0x1a, 0x24, hd_table[1]->bdrv);=20 -=20 - val =3D 0;=20 for (i =3D 0; i < 4; i++) {=20 if (hd_table[i]) {=20 - int cylinders, heads, sectors, translation;=20 - /* NOTE: bdrv_get_geometry_hint() returns the physical=20 - geometry. It is always such that: 1 <=3D sects <=3D 63, = 1=20 - <=3D heads <=3D 16, 1 <=3D cylinders <=3D 16383. The = BIOS=20 - geometry can be different if a translation is done. */=20 - translation =3D bdrv_get_translation_hint(hd_table[i]->bdrv);= =20 - if (translation =3D=3D BIOS_ATA_TRANSLATION_AUTO) {=20 - bdrv_get_geometry_hint(hd_table[i]->bdrv, &cylinders, = &heads, §ors);=20 - if (cylinders <=3D 1024 && heads <=3D 16 && sectors <=3D = 63) {=20 - /* No translation. */=20 - translation =3D 0;=20 - } else {=20 - /* LBA translation. */=20 - translation =3D 1;=20 - }=20 - } else {=20 - translation--;=20 - }=20 - val |=3D translation << (i * 2);=20 + set_cmos_hd_data(hd_table[i]);=20 }=20 }=20 - rtc_set_memory(s, 0x39, val);=20 }=20 =20 void ioport_set_a20(int enable)=20 @@ -820,6 +832,8 @@ static void pc_init1(ram_addr_t ram_size,=20 DriveInfo *fd[MAX_FD];=20 void *fw_cfg;=20 =20 + machine_ide_finalize =3D set_cmos_hd_data;=20 +=20 if (ram_size >=3D 0xe0000000 ) {=20 above_4g_mem_size =3D ram_size - 0xe0000000;=20 below_4g_mem_size =3D 0xe0000000;=20 diff --git a/sysemu.h b/sysemu.h=20 index d0effa0..564d477 100644=20 --- a/sysemu.h=20 +++ b/sysemu.h=20 @@ -242,5 +242,6 @@ void usb_info(Monitor *mon);=20 void rtc_change_mon_event(struct tm *tm);=20 =20 void register_devices(void);=20 +extern void (*machine_ide_finalize)(DriveInfo *dinfo);=20 =20 #endif=20 diff --git a/vl.c b/vl.c=20 index ea79ac4..8ab3349 100644=20 --- a/vl.c=20 +++ b/vl.c=20 @@ -228,6 +228,7 @@ int ctrl_grab =3D 0;=20 unsigned int nb_prom_envs =3D 0;=20 const char *prom_envs[MAX_PROM_ENVS];=20 int boot_menu;=20 +void (*machine_ide_finalize)(DriveInfo *dinfo);=20 =20 int nb_numa_nodes;=20 uint64_t node_mem[MAX_NODES];=20 @@ -275,6 +276,10 @@ static struct {=20 { .driver =3D "vmware-svga", .flag =3D &default_vga = },=20 };=20 =20 +static void default_ide_finalize(DriveInfo *dinfo)=20 +{=20 +}=20 +=20 static int default_driver_check(QemuOpts *opts, void *opaque)=20 {=20 const char *driver =3D qemu_opt_get(opts, "driver");=20 @@ -2624,6 +2629,7 @@ int main(int argc, char **argv, char **envp)=20 =20 module_call_init(MODULE_INIT_MACHINE);=20 machine =3D find_default_machine();=20 + machine_ide_finalize =3D default_ide_finalize;=20 cpu_model =3D NULL;=20 initrd_filename =3D NULL;=20 ram_size =3D 0; --=__PartA8822EE3.0__= Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Description: HTML =0A =0A=0A =0A =0A

=0A When specifying ide devices = using -device, the cmos information

=0A

=0A wh= ich the bios depends on is not written. This patch generalizes =

=0A

=0A the cmos hd data setting for the existing code = path and adds the

=0A

=0A ability to = call that code on a per machine, per ide drive basis. =

=0A
=0A =0A

=0A This is important for older = guests, such as Windows XP, and Windows

=0A

=0A Server 2003.

=0A
=0A

=0A I = needed to add an id to the IDEBus structure since there wasn't =

=0A

=0A a way to identify whether an ide bus was = primary or secondary in

=0A

=0A the lower = level code.

=0A
=0A

=0A Signed-off-by: = Bruce Rogers <brogers@novell.com>

=0A
=0A =

=0A Bruce

=0A
=0A

=0A  hw/id= e/internal.h |    1

=0A

=0A  hw/ide/piix.c     |  &nb= sp; 2 +

=0A

=0A  hw/ide/qdev.c =     |    9 ++++= ++-

=0A

=0A  hw/pc.c   &nbs= p;       |   68 = +++++++++++++++= +++++++++++++++= ++----------------------

=0A

=0A  sys= emu.h          | &nbs= p;  1

=0A

=0A  vl.c   &n= bsp;          | =    6 ++++

=0A

=0A &= nbsp;6 files changed, 59 insertions(+), 28 deletions= 0;-)

=0A

=0A

=0A diff --git = a/hw/ide/internal.h b/hw/ide/internal.h

=0A

=0A in= dex 027029e..b04232c 100644

=0A

=0A --- = a/hw/ide/internal.h

=0A

=0A +++= b/hw/ide/internal.h

=0A

=0A @@ -450,6 = +450,7 @@ struct IDEBus {

=0A

=0A      IDEState ifs[2];

=0A

=0A =      uint8_t = unit;

=0A

=0A      = uint8_t cmd;

=0A

=0A +    u= int8_t id;

=0A

=0A     &nb= sp;qemu_irq irq;

=0A

=0A  }= 9;

=0A

=0A =  

=0A

=0A diff --git a/hw/ide/piix.c b/hw/ide/piix.c

=0A =

=0A index 295a93d..f62aadb 100644

=0A

=0A --- a/hw/ide/piix.c

=0A

=0A ++&= #43; b/hw/ide/piix.c

=0A

=0A @@ -136,6 = +136,8 @@ static int pci_piix_ide_initfn(PCIIDEState *d)= ;

=0A

=0A =      ide_init_i= oport(&d->bus[0], 0x1f0, 0x3f6); =

=0A

=0A      ide_init_ioport= 0;&d->bus[1], 0x170, 0x376); =

=0A

=0A  

=0A

=0A + =    d->bus[0].id = 0;

=0A =

=0A +    d->bus[1].id = = 1;

=0A

=0A      = ide_init2(&d->bus[0], NULL, NULL, isa_reserv= e_irq(14));

=0A

=0A   =    ide_init2(&d->bus[1], NULL, = NULL, isa_reserve_irq(15));

=0A

=0A      return 0;

=0A =

=0A diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c

=0A =

=0A index b18693d..632eccd 100644

=0A

=0A --- a/hw/ide/qdev.c

=0A

=0A ++&= #43; b/hw/ide/qdev.c

=0A

=0A @@ -39,6 = +39,7 @@ static int ide_qdev_init(DeviceState *qdev, = DeviceInfo *base)

=0A

=0A   &nb= sp;  IDEDevice *dev = DO_UPCAST(IDEDevice, = qdev, qdev);

=0A

=0A   &nb= sp;  IDEDeviceInfo *info = DO_UPCAST(IDEDeviceInfo= 4; qdev, base);

=0A

=0A   =    IDEBus *bus = DO_UPCAST(IDEBus, = qbus, qdev->parent_bus);

=0A

=0A &#= 43;    int i;

=0A

=0A  

=0A

=0A =      if = (!dev->conf.dinfo) {

=0A

=0A          fprintf= 0;stderr, "%s: no drive specified\n", qdev->in= fo->name);

=0A

=0A @@ -65,7 = +66,13 @@ static int ide_qdev_init(DeviceState *qdev, = DeviceInfo *base)

=0A

=0A   &nb= sp;  default:

=0A

=0A   &nb= sp;      goto err;

=0A =

=0A      }

=0A

=0A -    return info->init(dev);

=0A

=0A = +    dev->dinfo->= bus = bus->id;

=0A

=0A + =    dev->dinfo->unit = dev->unit; =

=0A

=0A +    i = info->init= 0;dev);

=0A

=0A +    if= (i >= 0) {

=0A

=0A + =        machine_ide_finalize(dev->= dinfo);

=0A

=0A +    &#= 125;

=0A

=0A = +    return = i;

=0A

=0A  

=0A =

=0A  err:

=0A

=0A   &nb= sp;  return -1;

=0A

=0A diff --git = a/hw/pc.c b/hw/pc.c

=0A

=0A index = 69e597f..29f47d4 100644

=0A

=0A --- a/hw/pc.c

=0A

=0A = +++ b/hw/pc.c =

=0A

=0A @@ -215,6 +215,44 @@ static void = cmos_init_hd(int type_ofs, int info_ofs, BlockDriverState = *hd)

=0A

=0A      = ;rtc_set_memory(s, info_ofs + 8, sectors); =

=0A

=0A  }

=0A

=0A &n= bsp;

=0A

=0A = +static void set_cmos_hd_data(= ;DriveInfo *dinfo)

=0A

=0A +{

=0A

=0A = +    static int = hd_type = 0;

=0A

=0A + =    static int hd_trans = 0;

=0A

=0A +    RTCState *s = rtc_state;

=0A

=0A = +    int cylinders,= heads, sectors, translation;

=0A

=0A +

=0A

=0A +    i= f (dinfo->bus == 0) {

=0A

=0A +        if (dinfo-&g= t;unit == 0) {

=0A

=0A + =            hd_type&#= 32;|= 0xf0;

=0A

=0A + =            cmos_init= _hd(0x19, 0x1b, dinfo->bdrv);

=0A =

=0A +        } else= {

=0A

=0A +     =        hd_type |= = 0x0f;

=0A

=0A +     =        cmos_init_hd(0x1a, = 0x24, dinfo->bdrv);

=0A

=0A + =        }

=0A

=0A +        rtc_set_memory&#= 40;s, 0x12, hd_type);

=0A

=0A += ;    }

=0A

=0A + =    /* NOTE: bdrv_get_geometry_hint() returns = the physical

=0A

=0A +     = ;   geometry.  It is always such that: 1 <= = sects <= 63, 1

=0A

=0A + =        <= heads <= = 16, 1 <= cylinders <= 16383. The BIOS

=0A =

=0A +        geometry can = be different if a translation is done. */

=0A

=0A +    translation = bdrv_get_translation_h= int(dinfo->bdrv);

=0A

=0A + =    if (translation == BIOS_ATA_TRANSLATION_AUTO&= #41; {

=0A

=0A +    &n= bsp;   bdrv_get_geometry_hint(dinfo->bdrv, = &cylinders, &heads, &sectors); =

=0A

=0A +        = if (cylinders <= 1024 && heads <= 16 && = sectors <= 63) {

=0A

=0A +=            /* = No translation. */

=0A

=0A + =            translati= on = 0;

=0A

=0A +    &n= bsp;   } else {

=0A

=0A +          &nbs= p; /* LBA translation. */

=0A

=0A = 3;            transl= ation = 1;

=0A

=0A + =        }

=0A

=0A +    } else { =

=0A

=0A +        = translation--;

=0A

=0A + =    }

=0A

=0A + =    hd_trans |= translation << ((d= info->bus * 4) + (dinfo->unit * 2));<= /font>

=0A

=0A = +    rtc_set_memory(= ;s, 0x39, hd_trans);

=0A

=0A += }

=0A

=0A +

=0A

=0A  /* convert boot_device letter to something recognizabl= e by the bios */

=0A

=0A  static = int boot_device2nibble(char boot_device)

=0A

=0A  {

=0A

=0A @@ -338,37 = +376,11 @@ static void cmos_init(ram_addr_t ram_size, = ram_addr_t above_4g_mem_size,

=0A

=0A  

=0A

=0A =      /* hard = drives */

=0A

=0A  

=0A =

=0A -    rtc_set_memory(s, 0x12, = (hd_table[0] ? 0xf0 : 0) | (hd_table&#= 91;1] ? 0x0f : 0));

=0A

=0A - =    if (hd_table[0])

=0A

=0A -        cmos_init_hd(0x1= 9, 0x1b, hd_table[0]->bdrv);

=0A =

=0A -    if (hd_table[1]) =

=0A

=0A -        cmos= _init_hd(0x1a, 0x24, hd_table[1]->bdrv);

=0A

=0A = -

=0A

=0A - =    val = 0;

=0A

=0A  &= nbsp;   for (i = 0; i < 4; i++= 1; {

=0A

=0A     &nbs= p;    if (hd_table[i]) {

=0A

=0A = -       &nbs= p;    int cylinders, heads, sectors, = translation;

=0A

=0A -     = ;       /* NOTE: bdrv_get_geometry_h= int() returns the physical

=0A

=0A - =             &nb= sp;  geometry.  It is always such that: 1 <= sects = <= 63, 1

=0A

=0A -   &= nbsp;           &nbs= p;<= heads <= 16, 1 <= cylinders <= 16383. = The BIOS

=0A

=0A -     &nbs= p;          geometry can = be different if a translation is done. */

=0A

=0A -           &n= bsp;translation = bdrv_get_translation_hint(hd_table[i]->= ;bdrv);

=0A

=0A -     =        if (translation == = BIOS_ATA_TRANSLATION_AUTO) {

=0A

=0A -           &n= bsp;    bdrv_get_geometry_hint(hd_table[i]-= >bdrv, &cylinders, &heads, &sectors);

=0A

=0A = -       &nbs= p;        if (cylinders = <= 1024 && heads <= 16 && sectors <= = 63) {

=0A

=0A -   &= nbsp;           &nbs= p;    /* No translation. */

=0A =

=0A -           = ;         translation = = 0;

=0A

=0A -     &nbs= p;          } el= se {

=0A

=0A -     &n= bsp;            = ;  /* LBA translation. */

=0A

=0A -           &n= bsp;        translation = = 1;

=0A

=0A -     &nbs= p;          }=

=0A

=0A -        &nbs= p;   } else {

=0A

=0A -           &n= bsp;    translation--;

=0A

=0A -           &n= bsp;}

=0A

=0A -     &nbs= p;      val |= translation = << (i * 2);

=0A

=0A + =            set_cmos_= hd_data(hd_table[i]);

=0A

=0A          }

=0A

=0A =      }

=0A

=0A = -    rtc_set_memory(s&#= 44; 0x39, val);

=0A

=0A  }=

=0A

=0A =  

=0A

=0A &= nbsp;void ioport_set_a20(int enable)

=0A

=0A @@ -820,6 +832,8 @@ static void pc_init1(ram_add= r_t ram_size,

=0A

=0A   &nb= sp;  DriveInfo *fd[MAX_FD];

=0A =

=0A      void *fw_cfg; =

=0A

=0A  

=0A

=0A + =    machine_ide_finalize = set_cmos_hd_data; =

=0A

=0A +

=0A

=0A  &nb= sp;   if (ram_size >= 0xe0000000 ) {=

=0A

=0A =        = ;  above_4g_mem_size = ram_size - 0xe0000000; =

=0A

=0A         =  below_4g_mem_size = 0xe0000000;

=0A

=0A diff --git a/sysemu.h b/sysemu.h

=0A

=0A index d0effa0..564d477 100644

=0A

=0A -= -- a/sysemu.h

=0A

=0A +++ b/sysemu.h

=0A

=0A = @@ -242,5 +242,6 @@ void = usb_info(Monitor *mon);

=0A

=0A &n= bsp;void rtc_change_mon_event(struct tm *tm); =

=0A

=0A  

=0A

=0A  vo= id register_devices(void);

=0A

=0A = 3;extern void (*machine_ide_finalize)(DriveInfo *dinfo&= #41;;

=0A

=0A  

=0A =

=0A  #endif

=0A

=0A diff --git = a/vl.c b/vl.c

=0A

=0A index ea79ac4..8ab3349 = 100644

=0A

=0A --- a/vl.c

=0A =

=0A +++ b/vl.c

=0A

=0A @@ = -228,6 +228,7 @@ int ctrl_grab = 0;

=0A =

=0A  unsigned int nb_prom_envs = 0; =

=0A

=0A  const char *prom_envs[MAX_PROM_ENV= S];

=0A

=0A  int boot_menu;

=0A

=0A = +void (*machine_ide_finalize&#= 41;(DriveInfo *dinfo);

=0A

=0A &nb= sp;

=0A

=0A =  int nb_numa_nodes; =

=0A

=0A  uint64_t node_mem[MAX_NODES];<= /font>

=0A

=0A = @@ -275,6 +276,10 @@ static = struct {

=0A

=0A   &nb= sp;  { .driver = "vmware-svga", =          .flag = = &default_vga       }, =

=0A

=0A  };

=0A

=0A  

=0A

=0A +static = void default_ide_finalize(DriveInfo *dinfo)

=0A =

=0A +{

=0A

=0A +}

=0A

=0A = +

=0A

=0A &nb= sp;static int default_driver_check(QemuOpts *opts, void = *opaque)

=0A

=0A  { =

=0A

=0A      const char = *driver = qemu_opt_get(opts, "driver");

=0A

=0A = @@ -2624,6 +2629,7 @@ int = main(int argc, char **argv, char **envp)

=0A

=0A =  

=0A

=0A &n= bsp;    module_call_init(MODULE_INIT_MACHINE)&#= 59;

=0A

=0A =      machine = = find_default_machine();

=0A

=0A +    machine_ide_finalize = default_ide_f= inalize;

=0A

=0A      = ;cpu_model = NULL;

=0A

=0A   &nb= sp;  initrd_filename = NULL;

=0A

=0A      ram_size = 0;=0A =

=0A =0A=0A --=__PartA8822EE3.0__=--