Add a comment on single-processor systems about p_cpu being initialized
by fork1().
This commit is contained in:
parent
956b3ca3b3
commit
8871d8563a
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.115 2000/05/26 21:19:25 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.116 2000/05/31 05:06:43 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1224,6 +1224,7 @@ Lswok:
|
||||
bset d0,d1 | yes, reset bit
|
||||
movl d1,_sched_whichqs
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_curproc
|
||||
clrl _want_resched
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.S,v 1.3 2000/05/26 21:19:27 thorpej Exp $ */
|
||||
/* $NetBSD: locore.S,v 1.4 2000/05/31 05:06:45 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -378,6 +378,8 @@ ENTRY(cpu_switch)
|
||||
|
||||
stw 3,P_BACK(31) /* probably superfluous */
|
||||
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
|
||||
li 3,SONPROC /* p->p_stat = SONPROC */
|
||||
stb 3,P_STAT(31)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: Locore.c,v 1.3 2000/05/26 21:19:29 thorpej Exp $ */
|
||||
/* $NetBSD: Locore.c,v 1.4 2000/05/31 05:06:46 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Ben Harris.
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__RCSID("$NetBSD: Locore.c,v 1.3 2000/05/26 21:19:29 thorpej Exp $");
|
||||
__RCSID("$NetBSD: Locore.c,v 1.4 2000/05/31 05:06:46 thorpej Exp $");
|
||||
|
||||
#include <sys/proc.h>
|
||||
#include <sys/sched.h>
|
||||
@ -136,6 +136,7 @@ cpu_switch(struct proc *p1)
|
||||
p2 = q->ph_link;
|
||||
remrunqueue(p2);
|
||||
want_resched = 0;
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
p2->p_stat = SONPROC;
|
||||
curproc = p2;
|
||||
#if 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpuswitch.S,v 1.33 2000/05/26 21:19:31 thorpej Exp $ */
|
||||
/* $NetBSD: cpuswitch.S,v 1.34 2000/05/31 05:06:47 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
@ -429,6 +429,8 @@ findqueue:
|
||||
mov r0, #0x00000000
|
||||
str r0, [r6, #(P_BACK)]
|
||||
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
|
||||
/* Process is now on a processor. */
|
||||
mov r0, #SONPROC /* p->p_stat = SONPROC */
|
||||
strb r0, [r6, #(P_STAT)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.67 2000/05/26 21:19:33 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.68 2000/05/31 05:06:47 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1172,6 +1172,7 @@ Lswok:
|
||||
bset d0,d1 | yes, reset bit
|
||||
movl d1,_sched_whichqs
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_curproc
|
||||
clrl _want_resched
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.15 2000/05/31 01:46:15 nisimura Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.16 2000/05/31 05:06:48 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1997
|
||||
@ -886,6 +886,8 @@ XL_switch_error:
|
||||
xor r0, r0
|
||||
mov.l r0, @r1 /* r8->p_back = 0 */
|
||||
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
|
||||
/* Process now running on a processor. */
|
||||
mov #P_STAT, r0
|
||||
mov #SONPROC, r1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.108 2000/05/26 21:19:40 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.109 2000/05/31 05:06:49 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -1280,6 +1280,7 @@ Lsw1:
|
||||
bclr %d0,%d1 | no, clear bit
|
||||
movl %d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,%a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl %a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.6 2000/05/26 21:19:48 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.7 2000/05/31 05:06:50 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1026,6 +1026,7 @@ Lsw1:
|
||||
bclr d0,d1 | no, clear bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.128 2000/05/26 21:19:51 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.129 2000/05/31 05:06:51 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1067,6 +1067,7 @@ Lsw1:
|
||||
bclr d0,d1 | no, clear bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.15 2000/05/31 01:46:16 nisimura Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.16 2000/05/31 05:06:52 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1997
|
||||
@ -769,6 +769,8 @@ XL_switch_error:
|
||||
xor r0, r0
|
||||
mov.l r0, @(P_BACK, r8) /* r8->p_back = 0 */
|
||||
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
|
||||
/* Process now running on a processor. */
|
||||
mov #P_STAT, r0
|
||||
mov #SONPROC, r1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.60 2000/05/26 21:19:58 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.61 2000/05/31 05:06:53 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1273,6 +1273,7 @@ Lsw1:
|
||||
bclr d0,d1 | no, clear bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.7 2000/05/26 21:20:01 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.8 2000/05/31 05:06:53 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1036,6 +1036,7 @@ Lsw1:
|
||||
bclr %d0,%d1 | no, clear bit
|
||||
movl %d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,%a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl %a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.24 2000/05/26 21:20:03 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.25 2000/05/31 05:06:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
@ -1191,6 +1191,7 @@ Lsw1:
|
||||
bclr %d0,%d1 | no, clear bit
|
||||
movl %d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,%a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl %a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.61 2000/05/31 01:46:16 nisimura Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.62 2000/05/31 05:06:55 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Philip A. Nelson.
|
||||
@ -810,6 +810,8 @@ sw1: /* Get the process and unlink it from the queue. */
|
||||
/* Isolate process. XXX Is this necessary? */
|
||||
movqd 0,P_BACK(r2)
|
||||
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
|
||||
/* Record new process. */
|
||||
movb SONPROC,P_STAT(r2) /* p->p_stat = SONPROC */
|
||||
movd r2,_C_LABEL(curproc)(pc)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.73 2000/05/31 03:16:52 nathanw Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.74 2000/05/31 05:06:56 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Gordon W. Ross
|
||||
@ -718,6 +718,7 @@ Lswok:
|
||||
bset d0,d1 | yes, reset bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.40 2000/05/31 03:16:53 nathanw Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.41 2000/05/31 05:06:57 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -737,6 +737,7 @@ Lswok:
|
||||
bset d0,d1 | yes, reset bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: locore.s,v 1.57 2000/05/26 21:20:28 thorpej Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.58 2000/05/31 05:06:58 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
@ -1139,6 +1139,7 @@ Lsw1:
|
||||
bclr d0,d1 | no, clear bit
|
||||
movl d1,_C_LABEL(sched_whichqs)
|
||||
Lsw2:
|
||||
/* p->p_cpu initialized in fork1() for single-processor */
|
||||
movb #SONPROC,a0@(P_STAT) | p->p_stat = SONPROC
|
||||
movl a0,_C_LABEL(curproc)
|
||||
clrl _C_LABEL(want_resched)
|
||||
|
Loading…
Reference in New Issue
Block a user