[PATCH] RISC-V: LiteX: fix comment about running from ROM
Ahmad Fatoum
ahmad at a3f.at
Wed Nov 24 23:05:15 PST 2021
Copy-paste left-over. On LiteX, barebox is already running from RAM that
the BIOS had set up.
Signed-off-by: Ahmad Fatoum <ahmad at 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
More information about the barebox
mailing list