From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] RISC-V: define position-independent __pi_memmove/memset/memcpy
Date: Tue, 22 Apr 2025 09:57:14 +0200 [thread overview]
Message-ID: <20250422075714.221527-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250422075714.221527-1-a.fatoum@pengutronix.de>
From: Ahmad Fatoum <a.fatoum@barebox.org>
For future use in the EFI loader runtime service code, have RISC-V arch
support define a memcpy that's completely position independent with
the same name as in Linux.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
arch/riscv/lib/memcpy.S | 1 +
arch/riscv/lib/memmove.S | 1 +
arch/riscv/lib/memset.S | 1 +
3 files changed, 3 insertions(+)
diff --git a/arch/riscv/lib/memcpy.S b/arch/riscv/lib/memcpy.S
index 51ab716253fa..c178ebf0996e 100644
--- a/arch/riscv/lib/memcpy.S
+++ b/arch/riscv/lib/memcpy.S
@@ -106,3 +106,4 @@ WEAK(memcpy)
6:
ret
END(__memcpy)
+SYM_FUNC_ALIAS(__pi_memcpy, __memcpy)
diff --git a/arch/riscv/lib/memmove.S b/arch/riscv/lib/memmove.S
index 07d1d2152ba5..442889cdc990 100644
--- a/arch/riscv/lib/memmove.S
+++ b/arch/riscv/lib/memmove.S
@@ -62,3 +62,4 @@ exit_memcpy:
move a1, t1
ret
END(__memmove)
+SYM_FUNC_ALIAS(__pi_memmove, __memmove)
diff --git a/arch/riscv/lib/memset.S b/arch/riscv/lib/memset.S
index 34c5360c6705..7b1b642dde19 100644
--- a/arch/riscv/lib/memset.S
+++ b/arch/riscv/lib/memset.S
@@ -111,3 +111,4 @@ WEAK(memset)
6:
ret
END(__memset)
+SYM_FUNC_ALIAS(__pi_memset, __memset)
--
2.39.5
next prev parent reply other threads:[~2025-04-22 8:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-22 7:57 [PATCH 1/3] ARM: drop unused mmiocpy/mmioset symbols Ahmad Fatoum
2025-04-22 7:57 ` [PATCH 2/3] ARM: define position-independent __pi_memmove/memset/memcpy Ahmad Fatoum
2025-04-22 7:57 ` Ahmad Fatoum [this message]
2025-04-22 8:57 ` [PATCH 1/3] ARM: drop unused mmiocpy/mmioset symbols 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=20250422075714.221527-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--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