aboutsummaryrefslogtreecommitdiff
path: root/src/pci.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-11-28 11:56:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-11-28 11:56:37 -0500
commitcf89e66e88cc9e6cdb03a9d296827bd7d246a412 (patch)
tree3d29e716e39d9d3678333bcfa0a4833f2aa5234f /src/pci.c
parentd21c089acf7016bb22ab81a96c5e20ca8075e3ea (diff)
downloadseabios-hppa-cf89e66e88cc9e6cdb03a9d296827bd7d246a412.zip
seabios-hppa-cf89e66e88cc9e6cdb03a9d296827bd7d246a412.tar.gz
seabios-hppa-cf89e66e88cc9e6cdb03a9d296827bd7d246a412.tar.bz2
Fix bug - bios writes must be enabled before max PCI bus detected.
The max pci bus is stored in the bios segment, so it must be writable. So, use a default max size (1 pci bus) for the initial write enable device scan and then do the full max bus check after write is enabled.
Diffstat (limited to 'src/pci.c')
-rw-r--r--src/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pci.c b/src/pci.c
index f586886..91a7ca5 100644
--- a/src/pci.c
+++ b/src/pci.c
@@ -49,7 +49,7 @@ u8 pci_config_readb(u16 bdf, u32 addr)
}
#if MODE16
-int MaxBDF VISIBLE16;
+int MaxBDF VISIBLE16 = 0x0100;
#endif
// Find the maximum bus number.