System statistics fixes. From Johnny Billquist (bqt@update.uu.se).

This commit is contained in:
ragge 1997-06-07 12:15:27 +00:00
parent f47d895f8c
commit 2492a42479
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: psl.h,v 1.5 1996/01/28 12:32:21 ragge Exp $ */
/* $NetBSD: psl.h,v 1.6 1997/06/07 12:15:28 ragge Exp $ */
/*
* Rewritten for the VAX port. Based on Berkeley code. /IC
@ -86,7 +86,7 @@
#define PSL_S 0x02000000 /* executive mode */
#define PSL_U 0x03000000 /* user mode */
#define PSL_IS 0x04000000 /* interrupt stack select */
#define PSL_FPD 0x04000000 /* first part done flag */
#define PSL_FPD 0x08000000 /* first part done flag */
#define PSL_TP 0x40000000 /* trace pending */
#define PSL_CM 0x80000000 /* compatibility mode */
@ -106,7 +106,7 @@
#define CLKF_USERMODE(framep) ((((framep)->ps) & (PSL_U)) == PSL_U)
#define CLKF_BASEPRI(framep) ((((framep)->ps) & (PSL_IPL1F)) == 0)
#define CLKF_PC(framep) ((framep)->pc)
#define CLKF_INTR(framep) 0
#define CLKF_INTR(framep) ((((framep)->ps) & (PSL_IS)) == PSL_IS)
#define PSL2IPL(ps) ((ps) >> 16)
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.31 1997/03/09 16:00:06 ragge Exp $ */
/* $NetBSD: vm_machdep.c,v 1.32 1997/06/07 12:15:27 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -287,9 +287,12 @@ again:
return; /* New process! */
idle:
p = curproc;
curproc = NULL; /* This is nice. /BQT */
spl0();
while (whichqs == 0)
;
curproc = p;
goto again;
}