Update cpu_fork() to eliminate double mapping of kernel stacks.

This commit is contained in:
gwr 1995-05-24 20:55:33 +00:00
parent 6e6f7ede65
commit 6867f7fcbd
3 changed files with 8 additions and 21 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.17 1995/05/05 03:42:13 cgd Exp $ */
/* $NetBSD: cpu.h,v 1.18 1995/05/24 20:55:33 gwr Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -54,12 +54,10 @@
* definitions of cpu-dependent requirements
* referenced in generic code
*/
#define cpu_exec(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_exec(p) /* nothing */
#define cpu_swapin(p) /* nothing */
#define cpu_wait(p) /* nothing */
#define cpu_setstack(p, ap) (p)->p_md.md_regs[SP] = ap
#define cpu_set_init_frame(p, fp) (p)->p_md.md_regs = fp
#define BROKEN_SWAP
#define cpu_swapout(p) panic("cpu_swapout: can't get here");
/*
* Arguments to hardclock and gatherstats encapsulate the previous
@ -138,7 +136,7 @@ union sun3sir {
{ "console_device", CTLTYPE_STRUCT }, \
}
/* values for machineid */
/* values for cpu_machine_id */
#define CPU_ARCH_MASK 0xf0
#define SUN3_ARCH 0x10
@ -150,8 +148,7 @@ union sun3sir {
#define SUN3_MACH_60 0x07
#define SUN3_MACH_E 0x08
extern int machineid, mmutype, ectype;
extern char *intiobase, *intiolimit;
extern unsigned char cpu_machine_id;
/* 680X0 function codes */
#define FC_USERD 1 /* user data space */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.11 1995/02/13 22:24:20 gwr Exp $ */
/* $NetBSD: vmparam.h,v 1.12 1995/05/24 20:55:34 gwr Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -128,11 +128,6 @@
/* This is where access by other VME masters starts. */
#define DVMA_SLAVE_BASE 0x0F000000
/*
* Kernel VA of kernel u-area for current process
*/
#define UADDR 0x0FFE0000 /* mon shortseg */
/*
* Mach derived constants
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam3.h,v 1.11 1995/02/13 22:24:20 gwr Exp $ */
/* $NetBSD: vmparam3.h,v 1.12 1995/05/24 20:55:34 gwr Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -128,11 +128,6 @@
/* This is where access by other VME masters starts. */
#define DVMA_SLAVE_BASE 0x0F000000
/*
* Kernel VA of kernel u-area for current process
*/
#define UADDR 0x0FFE0000 /* mon shortseg */
/*
* Mach derived constants
*/