Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/include tuck curproc/curlwp under _KERNEL onl...



details:   https://anonhg.NetBSD.org/src/rev/4d69c20a8565
branches:  trunk
changeset: 745739:4d69c20a8565
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 10 03:48:05 2020 +0000

description:
tuck curproc/curlwp under _KERNEL only (no _KMEMUSER)

diffstat:

 sys/arch/sparc/include/cpu.h |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r c0e280539e6a -r 4d69c20a8565 sys/arch/sparc/include/cpu.h
--- a/sys/arch/sparc/include/cpu.h      Tue Mar 10 01:23:42 2020 +0000
+++ b/sys/arch/sparc/include/cpu.h      Tue Mar 10 03:48:05 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.104 2019/12/30 22:13:47 ad Exp $ */
+/*     $NetBSD: cpu.h,v 1.105 2020/03/10 03:48:05 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -397,6 +397,11 @@
        struct evcnt ci_sintrcnt[16];
 };
 
+#endif /* _KERNEL || _KMEMUSER */
+
+/* Kernel only things. */
+#if defined(_KERNEL)
+
 /*
  * definitions of cpu-dependent requirements
  * referenced in generic code
@@ -408,10 +413,6 @@
 
 #define        cpu_number()            (cpuinfo.ci_cpuid)
 
-#endif /* _KERNEL || _KMEMUSER */
-
-/* Kernel only things. */
-#if defined(_KERNEL)
 void   cpu_proc_fork(struct proc *, struct proc *);
 
 #if defined(MULTIPROCESSOR)



Home | Main Index | Thread Index | Old Index