Module Name: src Committed By: christos Date: Mon Mar 9 18:43:52 UTC 2020
Modified Files: src/sys/arch/arm/include: cpu.h Log Message: Don't expose curproc/curlwp and other random kernel macros/functions/variables du-jour. To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109 src/sys/arch/arm/include/cpu.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/arm/include/cpu.h diff -u src/sys/arch/arm/include/cpu.h:1.108 src/sys/arch/arm/include/cpu.h:1.109 --- src/sys/arch/arm/include/cpu.h:1.108 Sat Feb 15 03:16:11 2020 +++ src/sys/arch/arm/include/cpu.h Mon Mar 9 14:43:52 2020 @@ -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 @@ void cpu_proc_fork(struct proc *, struct #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 @@ extern struct cpu_info cpu_info_store[]; struct lwp *arm_curlwp(void); struct cpu_info *arm_curcpu(void); +#ifdef _KERNEL #if defined(_MODULE) #define curlwp arm_curlwp() @@ -343,9 +344,11 @@ vaddr_t cpu_uarea_alloc_idlelwp(struct c int cpu_maxproc_hook(int); #endif +#endif /* _KERNEL */ + #endif /* !_LOCORE */ -#endif /* _KERNEL */ +#endif /* _KERNEL || _KMEMUSER */ #elif defined(__aarch64__)