[SeaBIOS] [PATCH 4/6] pci: tweak + comment minimum allocations
Gerd Hoffmann
kraxel at redhat.com
Tue Nov 26 13:24:12 CET 2013
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
src/fw/pciinit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/fw/pciinit.c b/src/fw/pciinit.c
index 1fd02f0..23fbd2f 100644
--- a/src/fw/pciinit.c
+++ b/src/fw/pciinit.c
@@ -20,9 +20,9 @@
#include "util.h" // pci_setup
#include "x86.h" // outb
-#define PCI_DEVICE_MEM_MIN 0x1000
-#define PCI_BRIDGE_IO_MIN 0x1000
-#define PCI_BRIDGE_MEM_MIN 0x100000
+#define PCI_DEVICE_MEM_MIN (1<<12) // 4k == page size
+#define PCI_BRIDGE_MEM_MIN (1<<21) // 2M == hugepage size
+#define PCI_BRIDGE_IO_MIN 0x1000 // mandated by pci bridge spec
enum pci_region_type {
PCI_REGION_TYPE_IO,
--
1.8.3.1
More information about the SeaBIOS
mailing list