Skip to content

Commit

Permalink
Merge pull request #569 from msft-jlange/native_eoi
Browse files Browse the repository at this point in the history
platform: support EOI on the native platform
  • Loading branch information
joergroedel authored Dec 16, 2024
2 parents 98f6411 + e975e4f commit 93ad654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/src/platform/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ use crate::utils::MemoryRegion;
#[cfg(debug_assertions)]
use crate::mm::virt_to_phys;

const APIC_MSR_EOI: u32 = 0x80B;
const APIC_MSR_ICR: u32 = 0x830;

#[derive(Clone, Copy, Debug)]
Expand Down Expand Up @@ -152,7 +153,7 @@ impl SvsmPlatform for NativePlatform {
}

fn eoi(&self) {
todo!();
write_msr(APIC_MSR_EOI, 0);
}

fn is_external_interrupt(&self, _vector: usize) -> bool {
Expand Down

0 comments on commit 93ad654

Please sign in to comment.