Skip to content

Commit

Permalink
arm/memcpy: optimize register usage
Browse files Browse the repository at this point in the history
JIRA: RTOS-789
  • Loading branch information
lukileczo committed Mar 11, 2024
1 parent 5e649dc commit 4a34bf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#define DST r0
#define SRC r1
#define LEN r12
#define LEN r5

.thumb
.syntax unified
Expand All @@ -42,7 +42,7 @@
.globl memcpy
.type memcpy, %function
memcpy:
str DST, [sp, #-8]!
push {r0, r5}
mov LEN, r2
cmp LEN, #64

Expand Down Expand Up @@ -76,7 +76,7 @@ memcpy:
bne 1b

.Lreturn:
ldr r0, [sp], #8
pop {r0, r5}
bx lr


Expand Down

0 comments on commit 4a34bf6

Please sign in to comment.