summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/intrinsics.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ia64/intrinsics.h')
-rw-r--r--include/asm-ia64/intrinsics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-ia64/intrinsics.h b/include/asm-ia64/intrinsics.h
index 9b83f8f0167..a3b96892f83 100644
--- a/include/asm-ia64/intrinsics.h
+++ b/include/asm-ia64/intrinsics.h
@@ -18,6 +18,8 @@
# include <asm/gcc_intrin.h>
#endif
+#define ia64_get_psr_i() (ia64_getreg(_IA64_REG_PSR) & IA64_PSR_I)
+
#define ia64_set_rr0_to_rr4(val0, val1, val2, val3, val4) \
do { \
ia64_set_rr(0x0000000000000000UL, (val0)); \