diff options
author | Dimitry Andric <dim@cvs.openbsd.org> | 2006-06-15 13:18:52 +0000 |
---|---|---|
committer | Dimitry Andric <dim@cvs.openbsd.org> | 2006-06-15 13:18:52 +0000 |
commit | bb89462af804753dbc1577aef76481608904576a (patch) | |
tree | 07a722c5a1988877856c2626352504d9c5367227 /sys/arch/i386 | |
parent | 4fd4312e65b7164b63985fac57477dd0a11a469c (diff) |
Add proper masking of reserved bits, when we test if the thermal
control MSR was written successfully.
ok tedu@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/p4tcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/p4tcc.c b/sys/arch/i386/i386/p4tcc.c index b718e48a3e0..7f3e5b75d3f 100644 --- a/sys/arch/i386/i386/p4tcc.c +++ b/sys/arch/i386/i386/p4tcc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p4tcc.c,v 1.7 2006/06/13 20:47:42 miod Exp $ */ +/* $OpenBSD: p4tcc.c,v 1.8 2006/06/15 13:18:51 dim Exp $ */ /* * Copyright (c) 2003 Ted Unangst * All rights reserved. @@ -110,7 +110,7 @@ p4tcc_setperf(int level) wrmsr(MSR_THERM_CONTROL, msreg); vet = rdmsr(MSR_THERM_CONTROL); - if (vet != msreg) { + if ((vet & 0x1e) != (msreg & 0x1e)) { printf("p4_tcc: cpu did not honor request\n"); return (EIO); } |