diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2025-01-31 12:27:25 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-01-31 12:22:21 +0000 |
commit | fbe19844e08da0723e75409e7ece7202340e2220 (patch) | |
tree | 26714c44d95c32763dc860058c0fe7b9af2af90a | |
parent | 4dd8b9e0f7c218513ffd5d7f96ae31dcef9cc817 (diff) | |
download | edk2-fbe19844e08da0723e75409e7ece7202340e2220.tar.gz |
Revert "ArmVirtPkg/ArmVirtQemu: Reduce MMIO region mapped by default"
This reverts commit 43233ff9f88e5c9b88228810f7725bade4cdfecf.
The TPM code (and possibly others too) must be fixed to also
map their MMIO ranges before we can do this cleanup.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c index 331c600d42..d435d72598 100644 --- a/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c +++ b/ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c @@ -18,13 +18,13 @@ #define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 5
//
-// mach-virt's core peripherals such as the UART and the RTC are all mapped in
-// the 'miscellaneous device I/O' region, which we just map in its entirety
-// rather than device by device. Note that it does not cover the GIC, any of
-// the NOR flash banks or PCI resource windows.
+// mach-virt's core peripherals such as the UART, the GIC and the RTC are
+// all mapped in the 'miscellaneous device I/O' region, which we just map
+// in its entirety rather than device by device. Note that it does not
+// cover any of the NOR flash banks or PCI resource windows.
//
-#define MACH_VIRT_PERIPH_BASE 0x09000000
-#define MACH_VIRT_PERIPH_SIZE SIZE_32MB
+#define MACH_VIRT_PERIPH_BASE 0x08000000
+#define MACH_VIRT_PERIPH_SIZE SIZE_128MB
/**
Default library constructor that obtains the memory size from a PCD.
@@ -105,7 +105,7 @@ ArmVirtGetMemoryMap ( VirtualMemoryTable[0].Length
));
- // Memory mapped peripherals (UART, RTC, virtio-mmio, etc)
+ // Memory mapped peripherals (UART, RTC, GIC, virtio-mmio, etc)
VirtualMemoryTable[1].PhysicalBase = MACH_VIRT_PERIPH_BASE;
VirtualMemoryTable[1].VirtualBase = MACH_VIRT_PERIPH_BASE;
VirtualMemoryTable[1].Length = MACH_VIRT_PERIPH_SIZE;
|