Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2003 13:25:55 -0400
From:      Brian Dean <bsd@bsdhome.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/i386 vm_machdep.c
Message-ID:  <20030706172555.GA4708@neutrino.bsdhome.com>
In-Reply-To: <200307061652.h66GqJMp060956@repoman.freebsd.org>
References:  <200307061652.h66GqJMp060956@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 06, 2003 at 09:52:19AM -0700, Brian S. Dean wrote:

> bsd         2003/07/06 09:52:19 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/i386/i386        vm_machdep.c 
>   Log:
>   Don't unconditionally reset the hardware debug registers in cpu_exit(),
>   reset them only if they were previously in use.  Unconditionally
>   resetting the registers wipes them out frequently, which interferes
>   with their use for kernel debugging.

FWIW, it looks like the reset_dbregs() call can be completely removed
from cpu_exit(), conditional or not, since cpu_thread_exit() also
makes the same call a little bit later in exit1() (by way of
thread_exit()).

-Brian
-- 
Brian Dean
bsd@FreeBSD.org
bsd@bsdhome.com
http://www.bsdhome.com/
http://www.bdmicro.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030706172555.GA4708>