summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2021-03-04 05:19:04 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-04 12:12:19 +0100
commit43a513fa841b3dd38dd93444cf42d77f7d1a3e51 (patch)
treee3b29ac764e2ebb14d3ba37910a2c4c74ae84d7a
parentdb6acc08ec78cd019da87b22ef925ba78028abf4 (diff)
downloadbarebox-master.tar.gz
openrisc: Define the elf binary entry pointHEADmaster
Entry is used by qemu to find where to start booting, we define this to the 0x100 reset vector as is done by default when the CPU resets. This fixes the qemu boot issue. Signed-off-by: Stafford Horne <shorne@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/openrisc/cpu/barebox.lds.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/openrisc/cpu/barebox.lds.S b/arch/openrisc/cpu/barebox.lds.S
index adb0c22..45c5f25 100644
--- a/arch/openrisc/cpu/barebox.lds.S
+++ b/arch/openrisc/cpu/barebox.lds.S
@@ -17,6 +17,7 @@
#include <asm-generic/barebox.lds.h>
OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
+ENTRY(__reset)
__DYNAMIC = 0;
MEMORY