summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2006-11-24 04:58:59 +0000
committerdrahn <drahn@openbsd.org>2006-11-24 04:58:59 +0000
commitb35e557f5aa48b828159e5b09938d74bac6c52d8 (patch)
tree68b89dedbcef3f15aa26303bec2274ea5d0d7974 /lib/libpthread/arch
parentreplace a magic number (reserved TX descs?) with macro (diff)
downloadwireguard-openbsd-b35e557f5aa48b828159e5b09938d74bac6c52d8.tar.xz
wireguard-openbsd-b35e557f5aa48b828159e5b09938d74bac6c52d8.zip
Use correct define to detect soft fpu on arm, dont complain on lint so much.
Diffstat (limited to 'lib/libpthread/arch')
-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
}