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/536d51a1b6aa
branches:  trunk
changeset: 980548:536d51a1b6aa
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 3999585cc9f6 -r 536d51a1b6aa 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