[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvmloader: Set up any Intel ICH for legacy IDE.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1214572511 -3600 # Node ID be52424a543ec9f1437056ee3bf429a4c48a4ea9 # Parent 37ff3322d4f345b5678e3d920fad90efcd16ca68 hvmloader: Set up any Intel ICH for legacy IDE. Signed-off-by: Li Zhang <li.zhang@xxxxxxxxx> --- tools/firmware/hvmloader/hvmloader.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff -r 37ff3322d4f3 -r be52424a543e tools/firmware/hvmloader/hvmloader.c --- a/tools/firmware/hvmloader/hvmloader.c Fri Jun 27 14:11:41 2008 +0100 +++ b/tools/firmware/hvmloader/hvmloader.c Fri Jun 27 14:15:11 2008 +0100 @@ -206,10 +206,12 @@ static void pci_setup(void) pci_writew(devfn, 0x3d, 0x0001); break; case 0x0101: - /* PIIX3 IDE */ - ASSERT((vendor_id == 0x8086) && (device_id == 0x7010)); - pci_writew(devfn, 0x40, 0x8000); /* enable IDE0 */ - pci_writew(devfn, 0x42, 0x8000); /* enable IDE1 */ + if ( vendor_id == 0x8086 ) + { + /* Intel ICHs since PIIX3: enable IDE legacy mode. */ + pci_writew(devfn, 0x40, 0x8000); /* enable IDE0 */ + pci_writew(devfn, 0x42, 0x8000); /* enable IDE1 */ + } break; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |