* [OpenRISC] [PATCH] openrisc: Define the elf binary entry point
@ 2021-03-03 20:19 Stafford Horne
2021-03-04 11:12 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Stafford Horne @ 2021-03-03 20:19 UTC (permalink / raw
To: openrisc
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>
---
arch/openrisc/cpu/barebox.lds.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/openrisc/cpu/barebox.lds.S b/arch/openrisc/cpu/barebox.lds.S
index adb0c22f8..45c5f2553 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
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [OpenRISC] [PATCH] openrisc: Define the elf binary entry point
2021-03-03 20:19 [OpenRISC] [PATCH] openrisc: Define the elf binary entry point Stafford Horne
@ 2021-03-04 11:12 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2021-03-04 11:12 UTC (permalink / raw
To: openrisc
On Thu, Mar 04, 2021 at 05:19:04AM +0900, Stafford Horne wrote:
> 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>
> ---
> arch/openrisc/cpu/barebox.lds.S | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> diff --git a/arch/openrisc/cpu/barebox.lds.S b/arch/openrisc/cpu/barebox.lds.S
> index adb0c22f8..45c5f2553 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
> --
> 2.26.2
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-04 11:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-03 20:19 [OpenRISC] [PATCH] openrisc: Define the elf binary entry point Stafford Horne
2021-03-04 11:12 ` Sascha Hauer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.