Skip to content

Commit 151b1e3

Browse files
katietheqt-oldjosephlr
authored andcommitted
Fix a typo in MSR write
1 parent 1ccd685 commit 151b1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registers/model_specific.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ mod x86_64 {
141141
{
142142
let low = value as u32;
143143
let high = (value >> 32) as u32;
144-
asm!("rdmsr", in("ecx") self.0, in("eax") low, in("edx") high, options(nostack))
144+
asm!("wrmsr", in("ecx") self.0, in("eax") low, in("edx") high, options(nostack))
145145
}
146146

147147
#[cfg(not(feature = "inline_asm"))]

0 commit comments

Comments
 (0)