Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn26/acorn26 Add a curpcb variable, since the ne...



details:   https://anonhg.NetBSD.org/src/rev/49e6533f517c
branches:  trunk
changeset: 535194:49e6533f517c
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Aug 11 20:50:39 2002 +0000

description:
Add a curpcb variable, since the new bcopyinout.S will need one.

diffstat:

 sys/arch/acorn26/acorn26/Locore.c  |  8 ++++++--
 sys/arch/acorn26/acorn26/machdep.c |  6 ++++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diffs (70 lines):

diff -r 472362211b25 -r 49e6533f517c sys/arch/acorn26/acorn26/Locore.c
--- a/sys/arch/acorn26/acorn26/Locore.c Sun Aug 11 20:45:10 2002 +0000
+++ b/sys/arch/acorn26/acorn26/Locore.c Sun Aug 11 20:50:39 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: Locore.c,v 1.1 2002/03/24 15:46:42 bjh21 Exp $ */
+/*     $NetBSD: Locore.c,v 1.2 2002/08/11 20:50:39 bjh21 Exp $ */
 
 /*
  * Copyright (c) 2000 Ben Harris.
@@ -41,7 +41,7 @@
 
 #include <sys/param.h>
 
-__RCSID("$NetBSD: Locore.c,v 1.1 2002/03/24 15:46:42 bjh21 Exp $");
+__RCSID("$NetBSD: Locore.c,v 1.2 2002/08/11 20:50:39 bjh21 Exp $");
 
 #include <sys/proc.h>
 #include <sys/sched.h>
@@ -54,6 +54,8 @@
 
 static void idle(void);
 
+struct pcb *curpcb;
+
 /*
  * Put process p on the run queue indicated by its priority.
  * Calls should be made at splstatclock(), and p->p_stat should be SRUN.
@@ -139,6 +141,7 @@
        printf("cpu_switch: %p ->", p1);
 #endif
        curproc = NULL;
+       curpcb = NULL;
        while (sched_whichqs == 0)
                idle();
        which = ffs(sched_whichqs) - 1;
@@ -152,6 +155,7 @@
        /* p->p_cpu initialized in fork1() for single-processor */
        p2->p_stat = SONPROC;
        curproc = p2;
+       curpcb = &curproc->p_addr->u_pcb;
 #if 0
        printf(" %p\n", p2);
 #endif
diff -r 472362211b25 -r 49e6533f517c sys/arch/acorn26/acorn26/machdep.c
--- a/sys/arch/acorn26/acorn26/machdep.c        Sun Aug 11 20:45:10 2002 +0000
+++ b/sys/arch/acorn26/acorn26/machdep.c        Sun Aug 11 20:50:39 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.3 2002/08/11 20:45:10 bjh21 Exp $ */
+/* $NetBSD: machdep.c,v 1.4 2002/08/11 20:50:39 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 1998 Ben Harris
@@ -32,7 +32,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2002/08/11 20:45:10 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2002/08/11 20:50:39 bjh21 Exp $");
 
 #include <sys/buf.h>
 #include <sys/kernel.h>
@@ -225,6 +225,8 @@
         */
        bufinit();
 
+       curpcb = &proc0.p_addr->u_pcb;
+
 #if 0
        /* Test exception handlers */
        asm(".word 0x06000010"); /* undefined instruction */



Home | Main Index | Thread Index | Old Index