mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [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: Barebox; +Cc: Openrisc, Ahmad Fatoum, Stafford Horne

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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] openrisc: Define the elf binary entry point
  2021-03-03 20:19 [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: Stafford Horne; +Cc: Barebox, Openrisc, Ahmad Fatoum

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-04 11:16 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 [PATCH] openrisc: Define the elf binary entry point Stafford Horne
2021-03-04 11:12 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox