mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] RISC-V: LiteX: fix comment about running from ROM
@ 2021-11-25  7:05 Ahmad Fatoum
  2021-11-25  7:48 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2021-11-25  7:05 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Copy-paste left-over. On LiteX, barebox is already running from RAM that
the BIOS had set up.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
 arch/riscv/boards/litex-linux/lowlevel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/boards/litex-linux/lowlevel.c b/arch/riscv/boards/litex-linux/lowlevel.c
index da23ef5633a5..6be3d62e64fb 100644
--- a/arch/riscv/boards/litex-linux/lowlevel.c
+++ b/arch/riscv/boards/litex-linux/lowlevel.c
@@ -10,12 +10,12 @@ ENTRY_FUNCTION(start_litex_linux, a0, a1, a2)
 	extern char __dtb_z_litex_linux_start[];
 	void *fdt;
 
+	/* BIOS will have loaded us into RAM */
+
 	barebox_nmon_entry();
 
 	putc_ll('>');
 
-	/* On POR, we are running from read-only memory here. */
-
 	fdt = __dtb_z_litex_linux_start + get_runtime_offset();
 
 	barebox_riscv_machine_entry(0x40000000, SZ_256M, fdt);
-- 
2.33.0


_______________________________________________
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] RISC-V: LiteX: fix comment about running from ROM
  2021-11-25  7:05 [PATCH] RISC-V: LiteX: fix comment about running from ROM Ahmad Fatoum
@ 2021-11-25  7:48 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2021-11-25  7:48 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Thu, Nov 25, 2021 at 08:05:15AM +0100, Ahmad Fatoum wrote:
> Copy-paste left-over. On LiteX, barebox is already running from RAM that
> the BIOS had set up.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
> ---
>  arch/riscv/boards/litex-linux/lowlevel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha


-- 
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-11-25  7:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25  7:05 [PATCH] RISC-V: LiteX: fix comment about running from ROM Ahmad Fatoum
2021-11-25  7:48 ` Sascha Hauer

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