svn commit: r210231 - stable/8/sys/amd64/amd64

[ Available lists | Index of svn-src-stable-8 | Month of Jul 2010 | Week of 19 Jul 2010 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Konstantin Belousov <kib@FreeBSD.org>
Date
19 Jul 2010 12:16:42
Subject
svn commit: r210231 - stable/8/sys/amd64/amd64
Message-ID
201007191216.o6JCGfU9062674@svn.freebsd.org


[ Hide this part ]
Author: kib
Date: Mon Jul 19 12:16:41 2010
New Revision: 210231
URL: http://svn.freebsd.org/changeset/base/210231

Log:
MFC r209955:
When switching the thread from the processor, store %dr7 content
into the pcb before disabling watchpoints. Otherwise, when the
thread is restored on a processor, watchpoints are still disabled.

Modified:
stable/8/sys/amd64/amd64/cpu_switch.S
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)

Modified: stable/8/sys/amd64/amd64/cpu_switch.S
==============================================================================
--- stable/8/sys/amd64/amd64/cpu_switch.S Mon Jul 19 10:55:44 2010 (r210230)
+++ stable/8/sys/amd64/amd64/cpu_switch.S Mon Jul 19 12:16:41 2010 (r210231)
@@ -245,13 +245,13 @@ store_dr:
movq %dr2,%r13
movq %dr3,%r12
movq %dr6,%r11
- andq $0x0000fc00, %rax /* disable all watchpoints */
movq %r15,PCB_DR0(%r8)
movq %r14,PCB_DR1(%r8)
movq %r13,PCB_DR2(%r8)
movq %r12,PCB_DR3(%r8)
movq %r11,PCB_DR6(%r8)
movq %rax,PCB_DR7(%r8)
+ andq $0x0000fc00, %rax /* disable all watchpoints */
movq %rax,%dr7
jmp done_store_dr



Elapsed time: 0.166 seconds