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

Function vfp_disable

freebsd/arm64/arm64/vfp.c:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static void
72vfp_disable(void)
73{
74 uint32_t cpacr;
75
76 cpacr = READ_SPECIALREG(cpacr_el1);
77 cpacr = (cpacr & ~CPACR_FPEN_MASK) | CPACR_FPEN_TRAP_ALL1;
78 WRITE_SPECIALREG(cpacr_el1, cpacr);
79 isb();
80}
81
82/*
83 * Called when the thread is dying or when discarding the kernel VFP state.

Callers 4

vfp_discardFunction · 0.85
vfp_save_stateFunction · 0.85
vfp_initFunction · 0.85
fpu_kern_leaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected