]> Zhao Yanbai Git Server - minix.git/commitdiff
Undo one hack for QEMU, add another.
authorPhilip Homburg <philip@cs.vu.nl>
Fri, 5 Aug 2005 19:08:02 +0000 (19:08 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Fri, 5 Aug 2005 19:08:02 +0000 (19:08 +0000)
drivers/libpci/pci.c

index 374a06fd0f77f1be3451e88b355ecaa0673ba09e..bb444f2d0dcb513d85b97a6df0442c8eff7eacb2 100644 (file)
@@ -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);
                }