diff options
author | 2018-06-30 10:20:21 +0000 | |
---|---|---|
committer | 2018-06-30 10:20:21 +0000 | |
commit | b5e763189b9982b741a8f9f15f770fc3c31055d1 (patch) | |
tree | d521064960cf8e529c546a81ffb1a01be47b0073 /sys | |
parent | Add intr_enable() function, intended for MI use to amd64 and i386 and use (diff) | |
download | wireguard-openbsd-b5e763189b9982b741a8f9f15f770fc3c31055d1.tar.xz wireguard-openbsd-b5e763189b9982b741a8f9f15f770fc3c31055d1.zip |
Add intr_enable() here as well.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/include/cpu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/cpu.h b/sys/arch/arm64/include/cpu.h index cbfccc231d3..9c7f1549836 100644 --- a/sys/arch/arm64/include/cpu.h +++ b/sys/arch/arm64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.8 2018/06/28 21:19:45 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.9 2018/06/30 10:20:21 kettenis Exp $ */ /* * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com> * @@ -282,6 +282,12 @@ disable_irq_daif_ret() #define restore_interrupts(old_daif) \ restore_daif(old_daif) +static inline void +intr_enable(void) +{ + enable_irq_daif(); +} + static inline u_long intr_disable(void) { |