diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-30 10:16:36 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-30 10:16:36 +0000 |
commit | 6866d6c85bdb5a3d7a90cf0310589347454aac92 (patch) | |
tree | ff036d10abcf3c19946d6cf468986cbb7fc338a7 /sys/arch/amd64/include | |
parent | e56bbc05ac903af673abb6cef983d8d3f1086442 (diff) |
Add intr_enable() function, intended for MI use to amd64 and i386 and use
this in the acpi(4) suspend/resume code paths.
ok deraadt@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/cpufunc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/cpufunc.h b/sys/arch/amd64/include/cpufunc.h index a647eaab8b1..60c9de76725 100644 --- a/sys/arch/amd64/include/cpufunc.h +++ b/sys/arch/amd64/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.25 2018/04/24 20:33:28 mlarkin Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.26 2018/06/30 10:16:35 kettenis Exp $ */ /* $NetBSD: cpufunc.h,v 1.3 2003/05/08 10:27:43 fvdl Exp $ */ /*- @@ -179,6 +179,12 @@ write_rflags(u_long ef) __asm volatile("pushq %0; popfq" : : "r" (ef)); } +static __inline void +intr_enable(void) +{ + enable_intr(); +} + static __inline u_long intr_disable(void) { |