aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-armv7/media.c
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2016-02-18 16:21:15 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2016-02-20 07:31:44 +0100
commitf2134f3bab18a9c8968eef3e4233c82170af9629 (patch)
treee6e7f000f10ef0a33c97510da901f1e2d091ebd1 /src/mainboard/emulation/qemu-armv7/media.c
parentbd1fdc6e84cae1f3fa705ae229a6b8ab67f2960a (diff)
Fix qemu-armv7 memory map
Old map does not work on recent qemu. New map puts coreboot to ROM, so it behave more like most real machines would. For details on this map see comment in memlayout.ld Change-Id: If1f3328b511daca32ba93da5a6d44402508b37e9 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: https://review.coreboot.org/13748 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/emulation/qemu-armv7/media.c')
-rw-r--r--src/mainboard/emulation/qemu-armv7/media.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/emulation/qemu-armv7/media.c b/src/mainboard/emulation/qemu-armv7/media.c
index cb0b2757aa..e9feaf43c7 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 NOR flash 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)
{