no more V_SWTCH, moved from cpu_switch to cpu_exit.

pointed out by osymh@gemini.oscs.montana.edu (Michael Hitch)
This commit is contained in:
chopps 1994-05-29 06:58:25 +00:00
parent efa75ea465
commit 1af1586c0f
3 changed files with 5 additions and 6 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)genassym.c 7.8 (Berkeley) 5/7/91
* $Id: genassym.c,v 1.13 1994/05/25 07:58:26 chopps Exp $
* $Id: genassym.c,v 1.14 1994/05/29 06:58:25 chopps Exp $
*/
#define KERNEL
@ -77,7 +77,6 @@ main()
printf("#define\tPM_STCHG %d\n", &pmap->pm_stchanged);
printf("#define\tVM_PMAP %d\n", &vms->vm_pmap);
printf("#define\tV_SWTCH %d\n", &vm->v_swtch);
printf("#define\tV_INTR %d\n", &vm->v_intr);
printf("#define\tUPAGES %d\n", UPAGES);

View File

@ -38,7 +38,7 @@
* from: Utah $Hdr: locore.s 1.58 91/04/22$
*
* @(#)locore.s 7.11 (Berkeley) 5/9/91
* $Id: locore.s,v 1.21 1994/05/27 10:32:07 chopps Exp $
* $Id: locore.s,v 1.22 1994/05/29 06:58:27 chopps Exp $
*
* Original (hp300) Author: unknown, maybe Mike Hibler?
* Amiga author: Markus Wild
@ -1223,7 +1223,6 @@ ENTRY(cpu_switch)
movl _curproc,sp@- | remember last proc running
#endif
clrl _curproc
addql #1,_cnt+V_SWTCH
Lsw1:
/*
* Find the highest-priority queue that isn't empty,

View File

@ -38,7 +38,7 @@
* from: Utah $Hdr: vm_machdep.c 1.21 91/04/06$
*
* @(#)vm_machdep.c 7.10 (Berkeley) 5/7/91
* $Id: vm_machdep.c,v 1.13 1994/05/25 07:58:36 chopps Exp $
* $Id: vm_machdep.c,v 1.14 1994/05/29 06:58:29 chopps Exp $
*/
#include <sys/param.h>
@ -124,8 +124,9 @@ cpu_exit(p)
{
vmspace_free(p->p_vmspace);
(void) splimp();
cnt.v_swtch++;
kmem_free(kernel_map, (vm_offset_t)p->p_addr, ctob(UPAGES));
switch_exit();
/* NOTREACHED */