aboutsummaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-26 00:16:55 -0500
committerIan Moffett <ian@osmora.org>2024-02-26 00:16:55 -0500
commitd2bb1bd0f7ee62c5e9051db95df2916271c91105 (patch)
treea08a1b7a91613dc1f07943464044b18e6d0d9b18 /sys/arch
parent3591368b6cf0b7c1e48edfe811e519ad9b3d01b5 (diff)
kernel/amd64: lapic: Add support for sending EOIs
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/lapic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/lapic.c b/sys/arch/amd64/amd64/lapic.c
index c342844..a72e14e 100644
--- a/sys/arch/amd64/amd64/lapic.c
+++ b/sys/arch/amd64/amd64/lapic.c
@@ -309,6 +309,12 @@ lapic_send_ipi(uint8_t id, uint8_t shorthand, uint8_t vector)
}
}
+void
+lapic_send_eoi(void)
+{
+ lapic_writel(LAPIC_EOI, 0);
+}
+
/*
* Calibrates the Local APIC timer
*