openwrt/target/linux/bcm27xx/patches-5.15/950-0332-arch-arm-Add-__memset-alias-to-memset_rpi.S.patch
Álvaro Fernández Rojas 20ea6adbf1 bcm27xx: add support for linux v5.15
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B

Signed-off-by: Marty Jones <mj8263788@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2022-05-17 15:11:22 +02:00

34 lines
958 B
Diff

From f6b2421dd93a7eee29b58816cf7d3c1811dab9f9 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Fri, 8 Jan 2021 13:37:25 +0000
Subject: [PATCH] arch/arm: Add __memset alias to memset_rpi.S
memset_rpi.S is an optimised memset implementation, but doesn't define
__memset (which was just added to memset.S). As a result, building
for the BCM2835 platform causes a link failure.
Add __memset as yet another alias to our common implementation.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/lib/memset_rpi.S | 2 ++
1 file changed, 2 insertions(+)
--- a/arch/arm/lib/memset_rpi.S
+++ b/arch/arm/lib/memset_rpi.S
@@ -52,6 +52,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
*/
ENTRY(mmioset)
ENTRY(memset)
+ENTRY(__memset)
ENTRY(__memset32)
ENTRY(__memset64)
@@ -124,5 +125,6 @@ ENTRY(__memset64)
.unreq DAT3
ENDPROC(__memset64)
ENDPROC(__memset32)
+ENDPROC(__memset)
ENDPROC(memset)
ENDPROC(mmioset)