summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2006-11-24 04:59:00 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2006-11-24 04:59:00 +0000
commit8f7bbdbf377d445a4296e8cf525deedb522641f9 (patch)
tree540db03e7e3cedb5b7abb930550360c07b741460
parentad0d6f5adecd7ce94b4de18105811deade80da81 (diff)
Use correct define to detect soft fpu on arm, dont complain on lint so much.
-rw-r--r--lib/libpthread/arch/arm/uthread_machdep.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libpthread/arch/arm/uthread_machdep.c b/lib/libpthread/arch/arm/uthread_machdep.c
index 639199b19f4..8bef4231167 100644
--- a/lib/libpthread/arch/arm/uthread_machdep.c
+++ b/lib/libpthread/arch/arm/uthread_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_machdep.c,v 1.4 2005/11/25 06:53:22 deraadt Exp $ */
+/* $OpenBSD: uthread_machdep.c,v 1.5 2006/11/24 04:58:59 drahn Exp $ */
/*
* Copyright (c) 2004 Dale Rahn. All rights reserved.
@@ -75,7 +75,7 @@ _thread_machdep_init(statep, base, len, entry)
__asm__ volatile ("stmia %0, {r4-r12}":: "r"(&f->r[0]));
-#ifndef __VFP_FP__
+#ifndef __SOFTFP__
__asm__ volatile ("sfm f4, 4, [%0], #0":: "r"(&f->fpr[0]));
__asm__ volatile ("rfs 0; stfd 0, %0" : "=m"(f->fs));
@@ -94,20 +94,16 @@ void
_thread_machdep_save_float_state(statep)
struct _machdep_state* statep;
{
-#if 0
-#ifndef __VFP_FP__
+#if !defined(__SOFTFP__) && !defined (__lint__)
#error finish FP save
#endif
-#endif
}
void
_thread_machdep_restore_float_state(statep)
struct _machdep_state* statep;
{
-#if 0
-#ifndef __VFP_FP__
+#if !defined(__SOFTFP__) && !defined (__lint__)
#error finish FP save
#endif
-#endif
}