MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vfp_discard

Function vfp_discard

freebsd/arm64/arm64/vfp.c:88–100  ·  view source on GitHub ↗

* Called when the thread is dying or when discarding the kernel VFP state. * If the thread was the last to use the VFP unit mark it as unused to tell * the kernel the fp state is unowned. Ensure the VFP unit is off so we get * an exception on the next access. */

Source from the content-addressed store, hash-verified

86 * an exception on the next access.
87 */
88void
89vfp_discard(struct thread *td)
90{
91
92#ifdef INVARIANTS
93 if (td != NULL)
94 CRITICAL_ASSERT(td);
95#endif
96 if (PCPU_GET(fpcurthread) == td)
97 PCPU_SET(fpcurthread, NULL);
98
99 vfp_disable();
100}
101
102static void
103vfp_store(struct vfpstate *state)

Callers 3

fpu_kern_leaveFunction · 0.70
set_fpcontext32Function · 0.70
set_fpcontextFunction · 0.70

Calls 1

vfp_disableFunction · 0.85

Tested by

no test coverage detected