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

Function vfp_init

freebsd/arm64/arm64/vfp.c:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void
231vfp_init(void)
232{
233 uint64_t pfr;
234
235 /* Check if there is a vfp unit present */
236 pfr = READ_SPECIALREG(id_aa64pfr0_el1);
237 if ((pfr & ID_AA64PFR0_FP_MASK) == ID_AA64PFR0_FP_NONE)
238 return;
239
240 /* Disable to be enabled when it's used */
241 vfp_disable();
242
243 if (PCPU_GET(cpuid) == 0)
244 thread0.td_pcb->pcb_fpusaved->vfp_fpcr = initial_fpcr;
245}
246
247SYSINIT(vfp, SI_SUB_CPU, SI_ORDER_ANY, vfp_init, NULL);
248

Callers 1

init_secondaryFunction · 0.70

Calls 1

vfp_disableFunction · 0.85

Tested by

no test coverage detected