Add the hw.floatingpoint sysctl to ARM to tell us if we have vfp support
in the kernel and the hardware includes a vfp unit.
This commit is contained in:
parent
f220c315bb
commit
ab63899902
@ -183,6 +183,10 @@ SYSCTL_UINT(_hw_board, OID_AUTO, revision, CTLFLAG_RD,
|
||||
SYSCTL_STRING(_hw_board, OID_AUTO, serial, CTLFLAG_RD,
|
||||
board_serial, 0, "Board serial");
|
||||
|
||||
int vfp_exists;
|
||||
SYSCTL_INT(_hw, HW_FLOATINGPT, floatingpoint, CTLFLAG_RD,
|
||||
&vfp_exists, 0, "Floating point support enabled");
|
||||
|
||||
void
|
||||
board_set_serial(uint64_t serial)
|
||||
{
|
||||
|
@ -47,7 +47,7 @@ void vfp_restore(struct vfp_state *);
|
||||
void vfp_store(struct vfp_state *);
|
||||
void set_coprocessorACR(u_int);
|
||||
|
||||
boolean_t vfp_exists;
|
||||
extern int vfp_exists;
|
||||
static struct undefined_handler vfp10_uh, vfp11_uh;
|
||||
|
||||
/* The VFMXR command using coprocessor commands */
|
||||
|
Loading…
Reference in New Issue
Block a user