Compare commits
1 Commits
master
...
hard_float
Author | SHA1 | Date |
---|---|---|
Richard Campbell | 1675e19101 |
3
Makefile
3
Makefile
|
@ -42,8 +42,7 @@ else
|
|||
CPPFLAGS += -Iarch/common/include
|
||||
endif
|
||||
|
||||
# ARM hard float support is presently broken.
|
||||
FORCE_SOFT_FLOAT := yes
|
||||
FORCE_SOFT_FLOAT := no
|
||||
|
||||
ifeq ($(FORCE_SOFT_FLOAT),yes)
|
||||
CPPFLAGS += -DFORCE_SOFT_FLOAT
|
||||
|
|
|
@ -16,13 +16,17 @@ ALIAS(swapcontext, libucontext_swapcontext)
|
|||
ALIAS(__swapcontext, libucontext_swapcontext)
|
||||
|
||||
FUNC(libucontext_swapcontext)
|
||||
/* copy all of the current registers into the ucontext structure */
|
||||
str r13, [r0,#REG_OFFSET(13)]
|
||||
str r14, [r0,#REG_OFFSET(15)]
|
||||
|
||||
#ifndef FORCE_SOFT_FLOAT
|
||||
#ifndef FORCE_HARD_FLOAT
|
||||
/* test for vfp magic number, copy to other ucontext */
|
||||
ldr r3, [r1, #VFP_MAGIC_OFFSET]
|
||||
ldr r4, =#0x56465001
|
||||
ldr r2, =#0x56465001
|
||||
str r3, [r0, #VFP_MAGIC_OFFSET]
|
||||
cmp r3, r4
|
||||
cmp r3, r2
|
||||
bne 1f
|
||||
#endif
|
||||
/* if vfp in use, save and restore d8-d15 */
|
||||
|
@ -36,9 +40,6 @@ FUNC(libucontext_swapcontext)
|
|||
1:
|
||||
#endif
|
||||
|
||||
/* copy all of the current registers into the ucontext structure */
|
||||
str r13, [r0,#REG_OFFSET(13)]
|
||||
str r14, [r0,#REG_OFFSET(15)]
|
||||
add r2, r0, #REG_OFFSET(0)
|
||||
/* copy r0 with value 0 to indicate success (return value 0) */
|
||||
mov r0, #0
|
||||
|
|
Loading…
Reference in New Issue