Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/include On MULTIPROCESSOR kernel...



details:   https://anonhg.NetBSD.org/src/rev/1e5ab7feb701
branches:  sommerfeld_i386mp_1
changeset: 482162:1e5ab7feb701
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sun Feb 20 17:43:29 2000 +0000

description:
On MULTIPROCESSOR kernels, delete the "curpcb" global variable since
it's per-CPU (it lives in struct cpu_info, defined in cpu.h)

diffstat:

 sys/arch/i386/include/pcb.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r d5e93867755d -r 1e5ab7feb701 sys/arch/i386/include/pcb.h
--- a/sys/arch/i386/include/pcb.h       Sun Feb 20 17:42:21 2000 +0000
+++ b/sys/arch/i386/include/pcb.h       Sun Feb 20 17:43:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcb.h,v 1.26 1999/09/12 01:17:07 chs Exp $     */
+/*     $NetBSD: pcb.h,v 1.26.10.1 2000/02/20 17:43:29 sommerfeld Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -81,6 +81,10 @@
 #ifndef _I386_PCB_H_
 #define _I386_PCB_H_
 
+#if defined(_KERNEL) && !defined(_LKM)
+#include "opt_multiprocessor.h"
+#endif
+
 #include <sys/signal.h>
 
 #include <machine/segments.h>
@@ -124,7 +128,9 @@
 };    
 
 #ifdef _KERNEL
+#ifndef MULTIPROCESSOR
 struct pcb *curpcb;            /* our current running pcb */
 #endif
+#endif
 
 #endif /* _I386_PCB_H_ */



Home | Main Index | Thread Index | Old Index