From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <ahmad@a3f.at>
Subject: [PATCH] RISC-V: LiteX: fix comment about running from ROM
Date: Thu, 25 Nov 2021 08:05:15 +0100 [thread overview]
Message-ID: <20211125070515.671542-1-ahmad@a3f.at> (raw)
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
next reply other threads:[~2021-11-25 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 7:05 Ahmad Fatoum [this message]
2021-11-25 7:48 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211125070515.671542-1-ahmad@a3f.at \
--to=ahmad@a3f.at \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox