Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Make use of vfp_used_p condition on FPU_VFP
details: https://anonhg.NetBSD.org/src/rev/58c97a37ec16
branches: trunk
changeset: 789585:58c97a37ec16
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 23 14:39:50 2013 +0000
description:
Make use of vfp_used_p condition on FPU_VFP
diffstat:
sys/arch/arm/arm32/sys_machdep.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r e0af1bcb7749 -r 58c97a37ec16 sys/arch/arm/arm32/sys_machdep.c
--- a/sys/arch/arm/arm32/sys_machdep.c Fri Aug 23 10:37:03 2013 +0000
+++ b/sys/arch/arm/arm32/sys_machdep.c Fri Aug 23 14:39:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.18 2013/08/23 05:22:01 matt Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.19 2013/08/23 14:39:50 matt Exp $ */
/*
* Copyright (c) 1995-1997 Mark Brinicombe.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.18 2013/08/23 05:22:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.19 2013/08/23 14:39:50 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -123,7 +123,11 @@
arm32_fpu_used(struct lwp *l, const void *uap, register_t *retval)
{
/* No args */
+#ifdef FPU_VFP
retval[0] = vfp_used_p();
+#else
+ retval[0] = false;
+#endif
return 0;
}
Home |
Main Index |
Thread Index |
Old Index