Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include Add ENABLE_INTERRUPT() / DISABLE_INTERR...



details:   https://anonhg.NetBSD.org/src/rev/91a3f0bcaa32
branches:  trunk
changeset: 959324:91a3f0bcaa32
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Feb 07 21:15:40 2021 +0000

description:
Add ENABLE_INTERRUPT() / DISABLE_INTERRUPT() macros for compatibility
with aarch64.

diffstat:

 sys/arch/arm/include/cpufunc.h |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 72f714be7a71 -r 91a3f0bcaa32 sys/arch/arm/include/cpufunc.h
--- a/sys/arch/arm/include/cpufunc.h    Sun Feb 07 21:15:09 2021 +0000
+++ b/sys/arch/arm/include/cpufunc.h    Sun Feb 07 21:15:40 2021 +0000
@@ -353,6 +353,9 @@
 #define restore_interrupts(old_cpsr)                                   \
        (__set_cpsr_c((I32_bit | F32_bit), (old_cpsr) & (I32_bit | F32_bit)))
 
+#define        ENABLE_INTERRUPT()      cpsie(I32_bit)
+#define        DISABLE_INTERRUPT()     cpsid(I32_bit)
+
 static inline void cpsie(register_t psw) __attribute__((__unused__));
 static inline register_t cpsid(register_t psw) __attribute__((__unused__));
 



Home | Main Index | Thread Index | Old Index