Module Name: src
Committed By: christos
Date: Tue Mar 10 01:17:34 UTC 2020
Modified Files:
src/sys/arch/aarch64/include: cpu.h
Log Message:
protect curcpu/curlwp from _KMEMUSER
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/aarch64/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/aarch64/include/cpu.h
diff -u src/sys/arch/aarch64/include/cpu.h:1.21 src/sys/arch/aarch64/include/cpu.h:1.22
--- src/sys/arch/aarch64/include/cpu.h:1.21 Sat Feb 15 03:16:10 2020
+++ src/sys/arch/aarch64/include/cpu.h Mon Mar 9 21:17:33 2020
@@ -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 @@ struct cpu_info {
} __aligned(COHERENCY_UNIT);
+#ifdef _KERNEL
static inline struct cpu_info *
curcpu(void)
{
@@ -159,6 +160,8 @@ cpu_dosoftints(void)
#endif
}
+#endif /* _KERNEL */
+
#endif /* _KERNEL || _KMEMUSER */
#endif