aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/traps.c
diff options
context:
space:
mode:
authorDietmar Hahn <dietmar.hahn@ts.fujitsu.com>2012-02-01 16:45:54 +0100
committerDietmar Hahn <dietmar.hahn@ts.fujitsu.com>2012-02-01 16:45:54 +0100
commite2b1084603c2c514ada85e448d15a6e70c7f9ca2 (patch)
tree53ec41a43a792d2fc61ac56d470ed85a63dbec72 /xen/arch/x86/traps.c
parentee65792d9386e7eb538dd09674c1c275f2691abb (diff)
downloadxen-e2b1084603c2c514ada85e448d15a6e70c7f9ca2.tar.gz
xen-e2b1084603c2c514ada85e448d15a6e70c7f9ca2.tar.bz2
xen-e2b1084603c2c514ada85e448d15a6e70c7f9ca2.zip
x86: Use defines for bits of MSR_IA32_DEBUGCTLMSR instead of numbers
Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/traps.c')
-rw-r--r--xen/arch/x86/traps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index b6f7b9ac40..2057ac5c2e 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -3376,12 +3376,12 @@ void write_efer(u64 val)
static void ler_enable(void)
{
u64 debugctl;
-
+
if ( !this_cpu(ler_msr) )
return;
rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl);
- wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl | 1);
+ wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl | IA32_DEBUGCTLMSR_LBR);
}
void do_debug(struct cpu_user_regs *regs)