summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-29 19:28:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-29 19:28:16 +0100
commitb282c5d4fa0a99556d9b977b3a9b92e06c66db85 (patch)
tree4a55b148878b1b8b35c86d5f7bded0eefe5e5b2e /linux
parent8bde80c03f475f06b62962905dc6766f5bc28c4c (diff)
Fallback on direct PCI access when no BIOS32 is available
Some hardware start shippping with no BIOS32 at all, and we'll have to implement ACPI to get the address of the mmconfig table. In the meanwhile, we can hope that the direct probe works (it does on HP820 for instance). * linux/src/arch/i386/kernel/bios32.c (pcibios_init): Also try check_direct_pci() when bios32 probing failed.
Diffstat (limited to 'linux')
-rw-r--r--linux/src/arch/i386/kernel/bios32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/src/arch/i386/kernel/bios32.c b/linux/src/arch/i386/kernel/bios32.c
index b069ce46..c10cc0c0 100644
--- a/linux/src/arch/i386/kernel/bios32.c
+++ b/linux/src/arch/i386/kernel/bios32.c
@@ -909,6 +909,8 @@ unsigned long pcibios_init(unsigned long memory_start, unsigned long memory_end)
}
if (bios32_entry && check_pcibios())
access_pci = &pci_bios_access;
+ else
+ access_pci = check_direct_pci();
#endif
return memory_start;
}