Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include Don't expose curproc/curlwp and other r...



details:   https://anonhg.NetBSD.org/src/rev/d3e6a5a83c08
branches:  trunk
changeset: 1008076:d3e6a5a83c08
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 09 18:43:52 2020 +0000

description:
Don't expose curproc/curlwp and other random kernel macros/functions/variables
du-jour.

diffstat:

 sys/arch/arm/include/cpu.h |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 2bca50b5cdf1 -r d3e6a5a83c08 sys/arch/arm/include/cpu.h
--- a/sys/arch/arm/include/cpu.h        Mon Mar 09 17:57:19 2020 +0000
+++ b/sys/arch/arm/include/cpu.h        Mon Mar 09 18:43:52 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.108 2020/02/15 08:16:11 skrll Exp $  */
+/*     $NetBSD: cpu.h,v 1.109 2020/03/09 18:43:52 christos Exp $       */
 
 /*
  * Copyright (c) 1994-1996 Mark Brinicombe.
@@ -101,7 +101,7 @@
 #ifndef _LOCORE
 #if defined(TPIDRPRW_IS_CURLWP) || defined(TPIDRPRW_IS_CURCPU)
 #include <arm/armreg.h>
-#endif
+#endif /* TPIDRPRW_IS_CURLWP || TPIDRPRW_IS_CURCPU */
 
 /* 1 == use cpu_sleep(), 0 == don't */
 extern int cpu_do_powersave;
@@ -217,6 +217,7 @@
 struct lwp *arm_curlwp(void);
 struct cpu_info *arm_curcpu(void);
 
+#ifdef _KERNEL
 #if defined(_MODULE)
 
 #define        curlwp          arm_curlwp()
@@ -343,9 +344,11 @@
 int    cpu_maxproc_hook(int);
 #endif
 
+#endif /* _KERNEL */
+
 #endif /* !_LOCORE */
 
-#endif /* _KERNEL */
+#endif /* _KERNEL || _KMEMUSER */
 
 #elif defined(__aarch64__)
 



Home | Main Index | Thread Index | Old Index