[coreboot-gerrit] Patch set updated for coreboot: Fix qemu-armv7 memory map

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Fri Feb 19 18:04:15 CET 2016


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13748

-gerrit

commit 879d3df9ae41a8ef1301dc6600567b106632b17c
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Thu Feb 18 16:21:15 2016 +0100

    Fix qemu-armv7 memory map
    
    Change-Id: If1f3328b511daca32ba93da5a6d44402508b37e9
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/mainboard/emulation/qemu-armv7/media.c      |  4 ++--
 src/mainboard/emulation/qemu-armv7/memlayout.ld | 10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/mainboard/emulation/qemu-armv7/media.c b/src/mainboard/emulation/qemu-armv7/media.c
index cb0b275..d5686d7 100644
--- a/src/mainboard/emulation/qemu-armv7/media.c
+++ b/src/mainboard/emulation/qemu-armv7/media.c
@@ -14,9 +14,9 @@
  */
 #include <boot_device.h>
 
-/* Maps directly to qemu memory mapped space of 0x10000 up to rom size. */
+/* Maps directly to qemu memory mapped space of 0x0 up to rom size. */
 static const struct mem_region_device boot_dev =
-	MEM_REGION_DEV_INIT((void *)0x10000, CONFIG_ROM_SIZE);
+	MEM_REGION_DEV_INIT((void *)0x0, CONFIG_ROM_SIZE);
 
 const struct region_device *boot_device_ro(void)
 {
diff --git a/src/mainboard/emulation/qemu-armv7/memlayout.ld b/src/mainboard/emulation/qemu-armv7/memlayout.ld
index 0b139a2..f50fa17 100644
--- a/src/mainboard/emulation/qemu-armv7/memlayout.ld
+++ b/src/mainboard/emulation/qemu-armv7/memlayout.ld
@@ -34,10 +34,10 @@ SECTIONS
 {
 	/* TODO: does this thing emulate SRAM? */
 
-	BOOTBLOCK(0x10000, 64K)
-	ROMSTAGE(0x20000, 128K)
-	STACK(0x000FC000, 16K)
+	BOOTBLOCK(0x00000, 64K)
 
-	DRAM_START(0x01000000)
-	RAMSTAGE(0x01000000, 16M)
+	DRAM_START(0x60000000)
+	STACK(0x60000000, 64K)
+	ROMSTAGE(0x60010000, 128K)
+	RAMSTAGE(0x60030000, 16M)
 }



More information about the coreboot-gerrit mailing list