Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/vfp.c
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Lines | vfp_init(void) | ||||
/* Disable to be enabled when it's used */ | /* Disable to be enabled when it's used */ | ||||
vfp_disable(); | vfp_disable(); | ||||
if (PCPU_GET(cpuid) == 0) | if (PCPU_GET(cpuid) == 0) | ||||
thread0.td_pcb->pcb_fpusaved->vfp_fpcr = VFPCR_INIT; | thread0.td_pcb->pcb_fpusaved->vfp_fpcr = VFPCR_INIT; | ||||
} | } | ||||
SYSINIT(vfp, SI_SUB_CPU, SI_ORDER_ANY, vfp_init, NULL); | SYSINIT(vfp, SI_SUB_CPU, SI_ORDER_ANY, vfp_init); | ||||
struct fpu_kern_ctx * | struct fpu_kern_ctx * | ||||
fpu_kern_alloc_ctx(u_int flags) | fpu_kern_alloc_ctx(u_int flags) | ||||
{ | { | ||||
struct fpu_kern_ctx *res; | struct fpu_kern_ctx *res; | ||||
size_t sz; | size_t sz; | ||||
sz = sizeof(struct fpu_kern_ctx); | sz = sizeof(struct fpu_kern_ctx); | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |