cpu_swapout() moved to cpu.h
This commit is contained in:
parent
dbd8140c1f
commit
babf2e5892
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.h,v 1.22 2002/03/04 14:36:16 uch Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.23 2002/03/08 13:12:10 uch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -77,6 +77,7 @@ extern struct cpu_info cpu_info_store;
|
||||
* referenced in generic code
|
||||
*/
|
||||
#define cpu_swapin(p) /* nothing */
|
||||
#define cpu_swapout(p) /* nothing */
|
||||
#define cpu_wait(p) /* nothing */
|
||||
#define cpu_number() 0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.27 2002/03/04 02:43:25 simonb Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.28 2002/03/08 13:12:11 uch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
@ -143,12 +143,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack,
|
||||
pcb->r15 = (int)sf;
|
||||
}
|
||||
|
||||
void
|
||||
cpu_swapout(struct proc *p)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* cpu_exit is called as the last action during exit.
|
||||
*
|
||||
@ -211,24 +205,6 @@ cpu_coredump(struct proc *p, struct vnode *vp, struct ucred *cred,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Set a red zone in the kernel stack after the u. area.
|
||||
*/
|
||||
void
|
||||
setredzone(u_short *pte, caddr_t vaddr)
|
||||
{
|
||||
/* eventually do this by setting up an expand-down stack segment
|
||||
for ss0: selector, allowing stack access down to top of u.
|
||||
this means though that protection violations need to be handled
|
||||
thru a double fault exception that must do an integral task
|
||||
switch to a known good context, within which a dump can be
|
||||
taken. a sensible scheme might be to save the initial context
|
||||
used by sched (that has physical memory mapped 1:1 at bottom)
|
||||
and take the dump while still in mapped mode */
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Move pages from one kernel virtual address to another.
|
||||
* Both addresses are assumed to reside in the Sysmap.
|
||||
|
Loading…
Reference in New Issue
Block a user