arch: arm: remove unnecessary stacking of r3 in swap.S
Stacking r3 at this point is not required as the register value is not used afterwards, therefore, it does not need to be retained. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
55c2b73af6
commit
29e98d2f8f
1 changed files with 3 additions and 5 deletions
|
@ -216,11 +216,9 @@ _thread_irq_disabled:
|
|||
|
||||
#ifdef CONFIG_BUILTIN_STACK_GUARD
|
||||
/* clear stack pointer limit before setting the PSP */
|
||||
push {r3}
|
||||
mov r3, #0
|
||||
msr PSPLIM, r3
|
||||
pop {r3}
|
||||
#endif
|
||||
mov r0, #0
|
||||
msr PSPLIM, r0
|
||||
#endif /* CONFIG_BUILTIN_STACK_GUARD */
|
||||
|
||||
msr PSP, ip
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue