svn commit: r249176 - head/sys/arm/arm

Andrew Turner andrew at FreeBSD.org
Fri Apr 5 23:35:25 UTC 2013


Author: andrew
Date: Fri Apr  5 23:35:23 2013
New Revision: 249176
URL: http://svnweb.freebsd.org/changeset/base/249176

Log:
  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.

Modified:
  head/sys/arm/arm/machdep.c
  head/sys/arm/arm/vfp.c

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Fri Apr  5 22:19:02 2013	(r249175)
+++ head/sys/arm/arm/machdep.c	Fri Apr  5 23:35:23 2013	(r249176)
@@ -183,6 +183,10 @@ SYSCTL_UINT(_hw_board, OID_AUTO, revisio
 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)
 {

Modified: head/sys/arm/arm/vfp.c
==============================================================================
--- head/sys/arm/arm/vfp.c	Fri Apr  5 22:19:02 2013	(r249175)
+++ head/sys/arm/arm/vfp.c	Fri Apr  5 23:35:23 2013	(r249176)
@@ -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 */


More information about the svn-src-head mailing list