zero out switchtime.tv_sec. This fixes a fairly serious problem where

processes were being charged for time when the system was idle.
This commit is contained in:
Andrew Gallatin 1999-04-16 13:57:38 +00:00
parent 4940ba38d3
commit 22fae70741
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45713

View File

@ -1,4 +1,4 @@
/* $Id: swtch.s,v 1.7 1998/12/02 10:24:56 dfr Exp $ */
/* $Id: swtch.s,v 1.8 1999/02/28 10:53:28 bde Exp $ */
/* $NetBSD: locore.s,v 1.47 1998/03/22 07:26:32 thorpej Exp $ */
/*
@ -95,6 +95,7 @@ IMPORT(Lev1map, 8)
LEAF(idle, 0)
br pv, Lidle1
Lidle1: LDGP(pv)
stq zero, switchtime /* zero switchtime.tv_sec */
stq zero, curproc /* curproc <- NULL for stats */
mov zero, a0 /* enable all interrupts */
call_pal PAL_OSF1_swpipl