lede/target/linux/starfive/patches-6.12/0016-riscv-Fix-__memcpy_aligned-alias.patch
Zoltan HERPAI dbf85c4248 starfive: add new target for StarFive
This target adds support for the StarFive JH7100 and JH7110 SoCs,
based on 6.12, as well as a couple boards equipped with these.

Installation:
Standard SD-card installation via dd-ing the generated image to
an SD-card of at least 256Mb.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2025-06-21 22:00:02 +08:00

23 lines
738 B
Diff

From 9b8ac2217743a522f0c4f3e360f089b434fcd04b Mon Sep 17 00:00:00 2001
From: Hal Feng <hal.feng@starfivetech.com>
Date: Tue, 21 Jan 2025 11:42:35 +0800
Subject: [PATCH 16/55] riscv: Fix __memcpy_aligned alias
Don't set the weak global alias of memcpy_aligned to memcpy.
This affected iperf3 test.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
---
arch/riscv/lib/memcpy_aligned.S | 1 -
1 file changed, 1 deletion(-)
--- a/arch/riscv/lib/memcpy_aligned.S
+++ b/arch/riscv/lib/memcpy_aligned.S
@@ -80,6 +80,5 @@ SYM_FUNC_START(__memcpy_aligned)
6:
ret
SYM_FUNC_END(__memcpy_aligned)
-SYM_FUNC_ALIAS_WEAK(memcpy, __memcpy_aligned)
SYM_FUNC_ALIAS(__pi_memcpy, __memcpy_aligned)
SYM_FUNC_ALIAS(__pi___memcpy, __memcpy_aligned)