Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/vfp.c
| Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Lines | if (disable_vfp) | ||||
| fmxr(fpexc , fpexc & ~VFPEXC_EN); | fmxr(fpexc , fpexc & ~VFPEXC_EN); | ||||
| } | } | ||||
| } | } | ||||
| /* | /* | ||||
| * The current thread is dying. If the state currently in the hardware belongs | * The current thread is dying. If the state currently in the hardware belongs | ||||
| * to the current thread, set fpcurthread to NULL to indicate that the VFP | * to the current thread, set fpcurthread to NULL to indicate that the VFP | ||||
| * hardware state does not belong to any thread. If the VFP is on, turn it off. | * hardware state does not belong to any thread. If the VFP is on, turn it off. | ||||
| * Called only from cpu_throw(), so we don't have to worry about a context | |||||
| * switch here. | |||||
| */ | */ | ||||
| void | void | ||||
| vfp_discard(struct thread *td) | vfp_discard(struct thread *td) | ||||
| { | { | ||||
| u_int tmp; | u_int tmp; | ||||
| if (PCPU_GET(fpcurthread) == td) | if (PCPU_GET(fpcurthread) == td) | ||||
| PCPU_SET(fpcurthread, NULL); | PCPU_SET(fpcurthread, NULL); | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||