Module Name:    src
Committed By:   mrg
Date:           Fri Jan 29 05:14:11 UTC 2010

Modified Files:
        src/sys/arch/sparc/include: proc.h

Log Message:
make fpu_mtx visible only ifdef _KERNEL.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc/include/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/include/proc.h
diff -u src/sys/arch/sparc/include/proc.h:1.17 src/sys/arch/sparc/include/proc.h:1.18
--- src/sys/arch/sparc/include/proc.h:1.17	Tue Jan 26 03:06:01 2010
+++ src/sys/arch/sparc/include/proc.h	Fri Jan 29 05:14:11 2010
@@ -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_ */

Reply via email to