summaryrefslogtreecommitdiff
path: root/firmware/asm/arm/memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/asm/arm/memset.S')
-rw-r--r--firmware/asm/arm/memset.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/asm/arm/memset.S b/firmware/asm/arm/memset.S
index 682da874ce..64cd95cc9e 100644
--- a/firmware/asm/arm/memset.S
+++ b/firmware/asm/arm/memset.S
@@ -50,6 +50,7 @@ memset:
50/* 50/*
51 * we know that the pointer in r0 is aligned to a word boundary. 51 * we know that the pointer in r0 is aligned to a word boundary.
52 */ 52 */
53 and r1, r1, #255 @ clear sign bits
53 orr r1, r1, r1, lsl #8 54 orr r1, r1, r1, lsl #8
54 orr r1, r1, r1, lsl #16 55 orr r1, r1, r1, lsl #16
55 mov r3, r1 56 mov r3, r1