Add a comment about needing to initialize p_cpu when multiple

processors are supported.
This commit is contained in:
thorpej 2000-05-31 05:09:14 +00:00
parent dcdb0fd9c8
commit 8c2d00aaeb
7 changed files with 60 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.16 2000/05/26 21:19:35 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.17 2000/05/31 05:09:14 thorpej Exp $ */
/* $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $ */
/*
@ -35,6 +35,7 @@
#include "opt_ddb.h"
#include "fs_kernfs.h"
#include "opt_ipkdb.h"
#include "opt_multiprocessor.h"
#include "assym.h"
#include <sys/syscall.h>
@ -280,6 +281,13 @@ ENTRY(cpu_switch)
stw 3,P_BACK(31) /* probably superfluous */
#if defined(MULTIPROCESSOR)
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
/* Process now running on a processor. */
li 3,SONPROC /* p->p_stat = SONPROC */
stb 3,P_STAT(31)

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.221 2000/05/31 01:46:15 nisimura Exp $ */
/* $NetBSD: locore.s,v 1.222 2000/05/31 05:09:16 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -85,6 +85,7 @@
#include "opt_compat_ibcs2.h"
#include "opt_compat_svr4.h"
#include "opt_compat_oldboot.h"
#include "opt_multiprocessor.h"
#include "npx.h"
#include "assym.h"
@ -1941,6 +1942,13 @@ sw1: bsfl %ecx,%ebx # find a full q
/* Isolate process. XXX Is this necessary? */
movl %eax,P_BACK(%edi)
#if defined(MULTIPROCESSOR)
/*
* p->p_cpu = curcpu()
* XXXSMP
*/
#endif
/* Record new process. */
movb $SONPROC,P_STAT(%edi) # p->p_stat = SONPROC
movl %edi,_C_LABEL(curproc)

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.S,v 1.23 2000/05/26 21:19:54 thorpej Exp $ */
/* $NetBSD: locore.S,v 1.24 2000/05/31 05:09:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -33,6 +33,7 @@
#include "opt_ddb.h"
#include "opt_ipkdb.h"
#include "opt_multiprocessor.h"
#include "assym.h"
#include <sys/syscall.h>
@ -431,6 +432,13 @@ ENTRY(cpu_switch)
stw 3,P_BACK(31) /* probably superfluous */
#if defined(MULTIPROCESSOR)
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
/* Process now running on a processor. */
li 3,SONPROC /* p->p_stat = SONPROC */
stb 3,P_STAT(31)

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.S,v 1.102 2000/05/30 01:23:54 nisimura Exp $ */
/* $NetBSD: locore.S,v 1.103 2000/05/31 05:09:18 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -375,6 +375,12 @@ cpu_switch_queuescan:
/*
* Switch to new context.
*/
#if defined(MULTIPROCESSOR)
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
li v1, SONPROC # p->p_stat = SONPROC
sb v1, P_STAT(a0)
lw t2, _C_LABEL(mips_locoresw) + MIPSX_CPU_SWITCH_RESUME

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.S,v 1.17 2000/05/26 21:20:05 thorpej Exp $ */
/* $NetBSD: locore.S,v 1.18 2000/05/31 05:09:18 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -33,6 +33,7 @@
#include "opt_ddb.h"
#include "opt_ipkdb.h"
#include "opt_multiprocessor.h"
#include "assym.h"
#include <sys/syscall.h>
@ -338,6 +339,13 @@ ENTRY(cpu_switch)
stw 3,P_BACK(31) /* probably superfluous */
#ifdef MULTIPROCESSOR
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
/* Process now running on a processor. */
li 3,SONPROC /* p->p_stat = SONPROC */
stb 3,P_STAT(31)

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.5 2000/05/26 21:20:13 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.6 2000/05/31 05:09:19 thorpej Exp $ */
/* $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $ */
/*
@ -35,6 +35,7 @@
#include "opt_ddb.h"
#include "fs_kernfs.h"
#include "opt_ipkdb.h"
#include "opt_multiprocessor.h"
#include "assym.h"
#include <sys/syscall.h>
@ -287,6 +288,13 @@ ENTRY(cpu_switch)
stw 3,P_BACK(31) /* probably superfluous */
#if defined(MULTIPROCESSOR)
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
/* Process now running on a processor. */
li 3,SONPROC /* p->p_stat = SONPROC */
stb 3,P_STAT(31)

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.59 2000/05/26 21:20:20 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.60 2000/05/31 05:09:19 thorpej Exp $ */
/*
* Copyright (c) 1996-1999 Eduardo Horvath
* Copyright (c) 1996 Paul Kranenburg
@ -74,6 +74,7 @@
#include "opt_compat_svr4.h"
#include "opt_compat_sunos.h"
#include "opt_compat_netbsd32.h"
#include "opt_multiprocessor.h"
#include "assym.h"
#include <machine/param.h>
@ -7208,6 +7209,12 @@ Lsw_scan:
* Committed to running process p.
* It may be the same as the one we were running before.
*/
#if defined(MULTIPROCESSOR)
/*
* XXXSMP
* p->p_cpu = curcpu();
*/
#endif
mov SONPROC, %o0 ! p->p_stat = SONPROC
stb %o0, [%g3 + P_STAT]
sethi %hi(_C_LABEL(want_resched)), %o0