aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2013-04-05 23:35:23 +0000
committerAndrew Turner <andrew@FreeBSD.org>2013-04-05 23:35:23 +0000
commitc46c2523c205d6b6be1fc0bf60956552534fa393 (patch)
tree7302926388bce0de29fd137c49811cff2c445e15
parent6c2cb80e6459d7737f372af211dab5f90b2ca4aa (diff)
Notes
-rw-r--r--sys/arm/arm/machdep.c4
-rw-r--r--sys/arm/arm/vfp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index 408493c93b0f..ddedd9bcd4f1 100644
--- a/sys/arm/arm/machdep.c
+++ b/sys/arm/arm/machdep.c
@@ -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)
{
diff --git a/sys/arm/arm/vfp.c b/sys/arm/arm/vfp.c
index c163af03045f..e5e05b9f8a9b 100644
--- a/sys/arm/arm/vfp.c
+++ b/sys/arm/arm/vfp.c
@@ -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 */