Add a curpcb variable, since the new bcopyinout.S will need one.
This commit is contained in:
parent
947a208541
commit
cf963eaeb7
|
@ -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 @@ __RCSID("$NetBSD: Locore.c,v 1.1 2002/03/24 15:46:42 bjh21 Exp $");
|
|||
|
||||
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 @@ cpu_switch(struct proc *p1)
|
|||
printf("cpu_switch: %p ->", p1);
|
||||
#endif
|
||||
curproc = NULL;
|
||||
curpcb = NULL;
|
||||
while (sched_whichqs == 0)
|
||||
idle();
|
||||
which = ffs(sched_whichqs) - 1;
|
||||
|
@ -152,6 +155,7 @@ cpu_switch(struct proc *p1)
|
|||
/* 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
|
||||
|
|
|
@ -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 @@ cpu_startup()
|
|||
*/
|
||||
bufinit();
|
||||
|
||||
curpcb = &proc0.p_addr->u_pcb;
|
||||
|
||||
#if 0
|
||||
/* Test exception handlers */
|
||||
asm(".word 0x06000010"); /* undefined instruction */
|
||||
|
|
Loading…
Reference in New Issue