aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/cdefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index 777e72a..61106fa 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -33,6 +33,9 @@
#include <sys/param.h>
#define __ASMV __asm__ __volatile__
+#if defined(_KERNEL)
+#define __isr __attribute__((__interrupt__))
+#endif /* _KERNEL */
#define __weak __attribute__((__weak__))
#define __always_inline __attribute__((__always_inline__))
#define __packed __attribute__((__packed__))