Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/acorn26/acorn26 Pull up revision 1.2 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/ca6074b0d3ac
branches:  netbsd-1-6
changeset: 529403:ca6074b0d3ac
user:      he <he%NetBSD.org@localhost>
date:      Mon Nov 18 02:35:16 2002 +0000

description:
Pull up revision 1.2 (requested by bjh21 in ticket #689):
  New and much improved version of copyin(), copyout(), and
  kcopy() which works on both 26-bit and 32-bit machines.

diffstat:

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

diffs (43 lines):

diff -r c1b39148da18 -r ca6074b0d3ac sys/arch/acorn26/acorn26/Locore.c
--- a/sys/arch/acorn26/acorn26/Locore.c Mon Nov 18 02:27:00 2002 +0000
+++ b/sys/arch/acorn26/acorn26/Locore.c Mon Nov 18 02:35:16 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.1.4.1 2002/11/18 02:35:16 he 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.1.4.1 2002/11/18 02:35:16 he 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



Home | Main Index | Thread Index | Old Index