1 From 43e769a2c40287d36c54438898a8b7d9358adba9 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 11 Jan 2022 10:48:30 +0000
4 Subject: [PATCH] arm: Fix custom rpi __memset32 and __memset64
6 See: https://github.com/raspberrypi/linux/issues/4798
8 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 arch/arm/lib/memset_rpi.S | 12 +++++++-----
11 1 file changed, 7 insertions(+), 5 deletions(-)
13 --- a/arch/arm/lib/memset_rpi.S
14 +++ b/arch/arm/lib/memset_rpi.S
15 @@ -53,8 +53,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
24 @@ -64,10 +62,14 @@ ENTRY(__memset64)
27 orr DAT0, DAT0, DAT0, lsl #8
29 orr DAT0, DAT0, DAT0, lsl #16
37 /* See if we're guaranteed to have at least one 16-byte aligned 16-byte write */
40 @@ -89,7 +91,7 @@ ENTRY(__memset64)
41 stmcsia S!, {DAT0, DAT1}
42 164: /* Delayed set up of DAT2 and DAT3 so we could use them as scratch registers above */
46 /* Now the inner loop of 16-byte stores */
47 165: stmia S!, {DAT0, DAT1, DAT2, DAT3}
49 @@ -105,7 +107,7 @@ ENTRY(__memset64)