Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/vfp.c
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Lines | if (vfp10_uh.uh_handler == NULL) { | ||||
vfp10_uh.uh_handler = vfp_bounce; | vfp10_uh.uh_handler = vfp_bounce; | ||||
vfp11_uh.uh_handler = vfp_bounce; | vfp11_uh.uh_handler = vfp_bounce; | ||||
install_coproc_handler_static(10, &vfp10_uh); | install_coproc_handler_static(10, &vfp10_uh); | ||||
install_coproc_handler_static(11, &vfp11_uh); | install_coproc_handler_static(11, &vfp11_uh); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
SYSINIT(vfp, SI_SUB_CPU, SI_ORDER_ANY, vfp_init, NULL); | SYSINIT(vfp, SI_SUB_CPU, SI_ORDER_ANY, vfp_init); | ||||
/* start VFP unit, restore the vfp registers from the PCB and retry | /* start VFP unit, restore the vfp registers from the PCB and retry | ||||
* the instruction | * the instruction | ||||
*/ | */ | ||||
static int | static int | ||||
vfp_bounce(u_int addr, u_int insn, struct trapframe *frame, int code) | vfp_bounce(u_int addr, u_int insn, struct trapframe *frame, int code) | ||||
{ | { | ||||
u_int cpu, fpexc; | u_int cpu, fpexc; | ||||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |