summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2016-08-17 15:13:24 +0300
committerDan McDonald <danmcd@joyent.com>2017-09-01 14:07:43 -0400
commita62d310a2be18bb1054fea448f82a292724aa661 (patch)
tree6be1f2c819891422db8231f5152e88819fea7a19
parent1271e4b10dfaaed576c08a812f466f6e81370e5e (diff)
downloadillumos-joyent-a62d310a2be18bb1054fea448f82a292724aa661.tar.gz
8445 uts: pci_bios_get_irq_routing() should check for BIOS
Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/i86pc/os/pci_bios.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/i86pc/os/pci_bios.c b/usr/src/uts/i86pc/os/pci_bios.c
index 9ee865c7d2..4c824c695a 100644
--- a/usr/src/uts/i86pc/os/pci_bios.c
+++ b/usr/src/uts/i86pc/os/pci_bios.c
@@ -76,6 +76,10 @@ pci_bios_get_irq_routing(pci_irq_route_t *routes, int nroutes, int *nneededp)
if (nneededp)
*nneededp = 0;
+ /* in UEFI system, there is no BIOS data */
+ if (BOP_GETPROPLEN(bootops, "efi-systab") > 0)
+ return (0);
+
/*
* Set up irq routing header with the size and address
* of some useable low-memory data addresses. Initalize