From 2b2d2046e6928da056207ad9b8a874209880d74d Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Mon, 18 Apr 2016 12:38:15 +0100 Subject: [PATCH] stubs: Zero kernel and dtb address in stubs Allow the firmware to choose sensible kernel and DTB addresses for 32- and 64-bit system by zeroing the values in the stubs. These will be overwritten by the real address, or zero if the relevant item is not loaded. Signed-off-by: Phil Elwell --- armstubs/armstub.S | 4 ++-- armstubs/armstub7.S | 4 ++-- armstubs/armstub8.S | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/armstubs/armstub.S b/armstubs/armstub.S index ea90f5f59..2ce2015b5 100644 --- a/armstubs/armstub.S +++ b/armstubs/armstub.S @@ -39,5 +39,5 @@ machid: .word 3138 .org 0xf0 .word 0x5afe570b @ magic value to indicate firmware should overwrite atags and kernel .word 0 @ version -atags: .word 0x100 @ device tree address -kernel: .word 0x8000 @ kernel start address +atags: .word 0x0 @ device tree address +kernel: .word 0x0 @ kernel start address diff --git a/armstubs/armstub7.S b/armstubs/armstub7.S index 183f3c6db..1f639b241 100644 --- a/armstubs/armstub7.S +++ b/armstubs/armstub7.S @@ -125,5 +125,5 @@ jmp_loader: .org 0xf0 .word 0x5afe570b @ magic value to indicate firmware should overwrite atags and kernel .word 0 @ version -atags: .word 0x100 @ device tree address -kernel: .word 0x8000 @ kernel start address +atags: .word 0x0 @ device tree address +kernel: .word 0x0 @ kernel start address diff --git a/armstubs/armstub8.S b/armstubs/armstub8.S index 986e711a7..abab7d7ce 100644 --- a/armstubs/armstub8.S +++ b/armstubs/armstub8.S @@ -155,11 +155,11 @@ stub_version: .org 0xf8 .globl dtb_ptr32 dtb_ptr32: - .word 0x100 + .word 0x0 .org 0xfc .globl kernel_entry32 kernel_entry32: - .word 0x8000 + .word 0x0 .org 0x100 .globl dtb_space