summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-05-26 13:37:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-05-26 13:37:33 +0000
commit2ee6254ea63491706560467bdc63c0190ca93848 (patch)
treee73aa89bd2fbf3209e08f66274908978bd470745 /sys/arch/i386/include
parent5858a9930413b167f6b31abaf7562e58980d5a9a (diff)
Implement wakeup interrupts on amd64. Provide a dummy implementation for
i386 such that we can call the necessary hooks in the suspend/resume code without adding #ifdefs. Tweak the arm64 implementation such that we can call the hooks earlier as this is necessary to mask MSI and MSI-X interrupts on arm64. ok deraadt@, mlarkin@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/intr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/include/intr.h b/sys/arch/i386/include/intr.h
index 60fe6dccabc..9682673acd4 100644
--- a/sys/arch/i386/include/intr.h
+++ b/sys/arch/i386/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.49 2021/12/14 18:16:14 deraadt Exp $ */
+/* $OpenBSD: intr.h,v 1.50 2024/05/26 13:37:32 kettenis Exp $ */
/* $NetBSD: intr.h,v 1.5 1996/05/13 06:11:28 mycroft Exp $ */
/*
@@ -128,6 +128,8 @@ void splassert_check(int, const char *);
struct cpu_info;
void intr_barrier(void *);
+void intr_enable_wakeup(void);
+void intr_disable_wakeup(void);
#ifdef MULTIPROCESSOR
void i386_send_ipi(struct cpu_info *, int);