aboutsummaryrefslogtreecommitdiff
path: root/src/apic/x2apic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/apic/x2apic.rs')
-rw-r--r--src/apic/x2apic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apic/x2apic.rs b/src/apic/x2apic.rs
index dc99a05..e38fe9f 100644
--- a/src/apic/x2apic.rs
+++ b/src/apic/x2apic.rs
@@ -76,10 +76,10 @@ impl ApicControl for X2APIC {
}
/// Enable TSC timer
- fn tsc_enable(&mut self) {
+ fn tsc_enable(&mut self, vector: u8) {
unsafe {
let mut lvt: u64 = rdmsr(IA32_X2APIC_LVT_TIMER);
- lvt |= 0 << 17;
+ lvt &= !(1 << 17);
lvt |= 1 << 18;
wrmsr(IA32_X2APIC_LVT_TIMER, lvt);
}