aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/arm/swtch-v6.S
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/arm/swtch-v6.S')
-rw-r--r--sys/arm/arm/swtch-v6.S11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arm/arm/swtch-v6.S b/sys/arm/arm/swtch-v6.S
index 8bbd88bc8670..97d863b6d4de 100644
--- a/sys/arm/arm/swtch-v6.S
+++ b/sys/arm/arm/swtch-v6.S
@@ -86,9 +86,6 @@
#include <machine/armreg.h>
#include <machine/sysreg.h>
#include <machine/vfp.h>
-
-__FBSDID("$FreeBSD$");
-
#if defined(SMP)
#define GET_PCPU(tmp, tmp2) \
mrc CP15_MPIDR(tmp); \
@@ -323,11 +320,9 @@ ENTRY(cpu_switch)
#ifdef VFP
ldr r3, [r10, #(TD_PCB)]
- fmrx r0, fpexc /* If the VFP is enabled */
- tst r0, #(VFPEXC_EN) /* the current thread has */
- movne r1, #1 /* used it, so go save */
- addne r0, r3, #(PCB_VFPSTATE) /* the state into the PCB */
- blne _C_LABEL(vfp_store) /* and disable the VFP. */
+ mov r1, r3
+ mov r0, r10
+ bl _C_LABEL(vfp_save_state)
#endif
/*