Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include protect curcpu/curlwp from _KMEMUSER



details:   https://anonhg.NetBSD.org/src/rev/d248984e2dd9
branches:  trunk
changeset: 745737:d248984e2dd9
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 10 01:17:33 2020 +0000

description:
protect curcpu/curlwp from _KMEMUSER

diffstat:

 sys/arch/aarch64/include/cpu.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 8ec69c18c971 -r d248984e2dd9 sys/arch/aarch64/include/cpu.h
--- a/sys/arch/aarch64/include/cpu.h    Tue Mar 10 00:26:47 2020 +0000
+++ b/sys/arch/aarch64/include/cpu.h    Tue Mar 10 01:17:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.21 2020/02/15 08:16:10 skrll Exp $ */
+/* $NetBSD: cpu.h,v 1.22 2020/03/10 01:17:33 christos Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -112,6 +112,7 @@
 
 } __aligned(COHERENCY_UNIT);
 
+#ifdef _KERNEL
 static inline struct cpu_info *
 curcpu(void)
 {
@@ -159,6 +160,8 @@
 #endif
 }
 
+#endif /* _KERNEL */
+
 #endif /* _KERNEL || _KMEMUSER */
 
 #endif



Home | Main Index | Thread Index | Old Index