Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include make fpu_mtx visible only ifdef _KERNEL.



details:   https://anonhg.NetBSD.org/src/rev/4346bb1de199
branches:  trunk
changeset: 751231:4346bb1de199
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jan 29 05:14:11 2010 +0000

description:
make fpu_mtx visible only ifdef _KERNEL.

diffstat:

 sys/arch/sparc/include/proc.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 8d68d2146ca3 -r 4346bb1de199 sys/arch/sparc/include/proc.h
--- a/sys/arch/sparc/include/proc.h     Fri Jan 29 04:36:20 2010 +0000
+++ b/sys/arch/sparc/include/proc.h     Fri Jan 29 05:14:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.17 2010/01/26 03:06:01 mrg Exp $ */
+/*     $NetBSD: proc.h,v 1.18 2010/01/29 05:14:11 mrg Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,6 +63,7 @@
 #define        MDP_FIXALIGN    0x1             /* Fix unaligned memory accesses */
 
 
+#ifdef _KERNEL
 /*
  * FPU context switch lock
  * Prevent interrupts that grab the kernel lock
@@ -78,5 +79,6 @@
 #define FPU_UNLOCK(s)          do {    \
        mutex_exit(&fpu_mtx);           \
 } while (/* CONSTCOND */ 0)
+#endif
 
 #endif /* _SPARC_PROC_H_ */



Home | Main Index | Thread Index | Old Index