aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Wibo <obiwac@FreeBSD.org>2026-01-13 22:15:55 +0000
committerAymeric Wibo <obiwac@FreeBSD.org>2026-01-13 22:21:05 +0000
commit38f941deb6faa0c22ffd5bf2f848c62dc6fce434 (patch)
treea1b45d87ea15c96236f2b4bb7d30340b4f992caf
parente8348e2b35f3f644c391b8e0585090c451896684 (diff)
-rw-r--r--sys/x86/include/intr_machdep.h1
-rw-r--r--sys/x86/x86/intr_machdep.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/x86/include/intr_machdep.h b/sys/x86/include/intr_machdep.h
index 497c89b0a7eb..6d6b1962b6bd 100644
--- a/sys/x86/include/intr_machdep.h
+++ b/sys/x86/include/intr_machdep.h
@@ -151,6 +151,7 @@ int intr_register_source(struct intsrc *isrc);
int intr_remove_handler(void *cookie);
void intr_resume(bool suspend_cancelled);
void intr_suspend(void);
+void intr_enable_src(u_int irq);
void intr_reprogram(void);
void intrcnt_add(const char *name, u_long **countp);
void nexus_add_irq(u_long irq);
diff --git a/sys/x86/x86/intr_machdep.c b/sys/x86/x86/intr_machdep.c
index a16d2ced8dba..7e57c97a7291 100644
--- a/sys/x86/x86/intr_machdep.c
+++ b/sys/x86/x86/intr_machdep.c
@@ -405,6 +405,15 @@ intr_suspend(void)
mtx_unlock(&intrpic_lock);
}
+void
+intr_enable_src(u_int irq)
+{
+ struct intsrc *is;
+
+ is = interrupt_sources[irq];
+ is->is_pic->pic_enable_source(is);
+}
+
static int
intr_assign_cpu(void *arg, int cpu)
{