cvs commit: src/sys/i386/i386 vm_machdep.c
Brian Dean
bsd at bsdhome.com
Sun Jul 6 10:26:02 PDT 2003
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 at FreeBSD.org
bsd at bsdhome.com
http://www.bsdhome.com/
http://www.bdmicro.com/
More information about the cvs-src
mailing list