summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-01-29 20:59:31 +0300
committerAnup Patel <anup@brainfault.org>2019-02-08 06:48:46 +0300
commit9f44d07df533755d061f06e09b8f0f1793a18d7d (patch)
tree3aba62dfc25bbcbe9c2d7b182114212c781e0be7 /platform
parenta5f06b30c1503ecd09691f1ad9909287489228f5 (diff)
downloadopensbi-9f44d07df533755d061f06e09b8f0f1793a18d7d.tar.xz
platform: qemu/virt: Move kernel start address to 4MB alligned
In order to support 32-bit guests move the start address to a 4MB allignment. As 64-bit kernels have a requirement on being 2MB alligned let's just make this the default for both 32 and 64 bit kernels. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/qemu/virt/config.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/qemu/virt/config.mk b/platform/qemu/virt/config.mk
index 5931d0e..fcd25c8 100644
--- a/platform/qemu/virt/config.mk
+++ b/platform/qemu/virt/config.mk
@@ -30,10 +30,12 @@ PLATFORM_SYS_CLINT=y
# Blobs to build
FW_TEXT_START=0x80000000
FW_JUMP=y
-FW_JUMP_ADDR=0x80200000
+# This needs to be 4MB alligned for 32-bit support
+FW_JUMP_ADDR=0x80400000
FW_JUMP_FDT_ADDR=0x82200000
FW_PAYLOAD=y
-FW_PAYLOAD_OFFSET=0x200000
+# This needs to be 4MB alligned for 32-bit support
+FW_PAYLOAD_OFFSET=0x400000
FW_PAYLOAD_FDT_ADDR=0x82200000
# External Libraries to include