diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-05-26 13:37:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-05-26 13:37:33 +0000 |
commit | 2ee6254ea63491706560467bdc63c0190ca93848 (patch) | |
tree | e73aa89bd2fbf3209e08f66274908978bd470745 /sys/arch/amd64/include | |
parent | 5858a9930413b167f6b31abaf7562e58980d5a9a (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/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/intr.h | 4 | ||||
-rw-r--r-- | sys/arch/amd64/include/intrdefs.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/intr.h b/sys/arch/amd64/include/intr.h index 2fe24d36ff6..9f0c717da6f 100644 --- a/sys/arch/amd64/include/intr.h +++ b/sys/arch/amd64/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.33 2021/12/14 18:16:14 deraadt Exp $ */ +/* $OpenBSD: intr.h,v 1.34 2024/05/26 13:37:31 kettenis Exp $ */ /* $NetBSD: intr.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */ /*- @@ -206,6 +206,8 @@ int intr_handler(struct intrframe *, struct intrhand *); void cpu_intr_init(struct cpu_info *); void intr_printconfig(void); void intr_barrier(void *); +void intr_enable_wakeup(void); +void intr_disable_wakeup(void); #ifdef MULTIPROCESSOR void x86_send_ipi(struct cpu_info *, int); diff --git a/sys/arch/amd64/include/intrdefs.h b/sys/arch/amd64/include/intrdefs.h index 9b6de3c3e4a..048d0202b88 100644 --- a/sys/arch/amd64/include/intrdefs.h +++ b/sys/arch/amd64/include/intrdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intrdefs.h,v 1.23 2024/01/04 20:50:43 kettenis Exp $ */ +/* $OpenBSD: intrdefs.h,v 1.24 2024/05/26 13:37:31 kettenis Exp $ */ /* $NetBSD: intrdefs.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */ #ifndef _AMD64_INTRDEFS_H @@ -36,6 +36,7 @@ #define IPL_MPFLOOR IPL_TTY #define IPL_MPSAFE 0x100 +#define IPL_WAKEUP 0x200 /* Interrupt sharing types. */ #define IST_NONE 0 /* none */ |