From: Philip Homburg Date: Fri, 5 Aug 2005 19:08:02 +0000 (+0000) Subject: Undo one hack for QEMU, add another. X-Git-Tag: v3.1.0~412 X-Git-Url: http://zhaoyanbai.com/repos/man.rndc.conf.html?a=commitdiff_plain;h=490430f62780bc24ba90511b13adb6f70377efd2;p=minix.git Undo one hack for QEMU, add another. --- diff --git a/drivers/libpci/pci.c b/drivers/libpci/pci.c index 374a06fd0..bb444f2d0 100644 --- a/drivers/libpci/pci.c +++ b/drivers/libpci/pci.c @@ -516,10 +516,12 @@ printf("probe_bus(%d)\n", busind); sts= pci_attr_rsts(devind); if (sts & (PSR_SSE|PSR_RMAS|PSR_RTAS)) { +#if 0 printf( "pci: ignoring bad value 0x%x in sts for QEMU\n", sts & (PSR_SSE|PSR_RMAS|PSR_RTAS)); - /* break; */ +#endif + break; } if (vid == NO_VID) { @@ -800,7 +802,8 @@ int devind; { printf("IRQ %d is not level triggered\n", irq); - panic(NULL,NULL, NO_NUM); + printf("(ignored for QEMU)\n"); + /* panic(NULL,NULL, NO_NUM); */ } irq_mode_pci(irq); }