forked from Imagelibrary/rtems
@@ -44,6 +44,7 @@
|
|||||||
#define FRAME_SIZE (FRAME_OFFSET_LR + 4)
|
#define FRAME_SIZE (FRAME_OFFSET_LR + 4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
.syntax unified
|
||||||
.section .text
|
.section .text
|
||||||
|
|
||||||
#ifdef __thumb__
|
#ifdef __thumb__
|
||||||
@@ -174,11 +175,34 @@ check:
|
|||||||
bne restore
|
bne restore
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
cmp r2, sp
|
/* A compare involving the stack pointer is deprecated */
|
||||||
|
mov r1, sp
|
||||||
|
cmp r2, r1
|
||||||
bne restore
|
bne restore
|
||||||
|
|
||||||
mov r1, r0
|
mov r1, r0
|
||||||
|
|
||||||
|
#ifdef __thumb2__
|
||||||
|
cmp r1, r1
|
||||||
|
itttt eq
|
||||||
|
addeq r1, #1
|
||||||
|
addeq r1, #2
|
||||||
|
addeq r1, #4
|
||||||
|
addeq r1, #8
|
||||||
|
subs r1, #15
|
||||||
|
cmp r1, r0
|
||||||
|
bne restore
|
||||||
|
cmp r1, r1
|
||||||
|
iteee eq
|
||||||
|
addeq r1, #1
|
||||||
|
addne r1, #2
|
||||||
|
addne r1, #4
|
||||||
|
addne r1, #8
|
||||||
|
subs r1, #1
|
||||||
|
cmp r1, r0
|
||||||
|
bne restore
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ARM_MULTILIB_VFP
|
#ifndef ARM_MULTILIB_VFP
|
||||||
check_register r3
|
check_register r3
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user