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/6668c8352f14
branches: trunk
changeset: 951936:6668c8352f14
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 0d044c30dc40 -r 6668c8352f14 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