aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/intrinsics.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2008-05-19 09:13:31 -0400
committerTony Luck <tony.luck@intel.com>2008-05-27 17:39:07 -0400
commit72cb4256c7574e1c2c1350fa92eecd7cef9e4772 (patch)
tree56d2872fafa5965816d339f3cea9ff06e288c1d1 /include/asm-ia64/intrinsics.h
parent0e1a77ccdbc4ca59ccaf84168a0c3c1df4fadfc0 (diff)
[IA64] pvops: preparation: introduce ia64_get_psr_i() to make kernel paravirtualization friendly.
__local_irq_save() and local_save_flags() are used to mask interruptions. They read all psr bits that requres whole bit emulation. On the other hand, reading only psr.i, the single bit, can be virtualized cheaply. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Tony Luck <tony.luck@intel.com>
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 9b83f8f01678..a3b96892f83f 100644
--- a/include/asm-ia64/intrinsics.h
+++ b/include/asm-ia64/intrinsics.h
@@ -18,6 +18,8 @@
18# include <asm/gcc_intrin.h> 18# include <asm/gcc_intrin.h>
19#endif 19#endif
20 20
21#define ia64_get_psr_i() (ia64_getreg(_IA64_REG_PSR) & IA64_PSR_I)
22
21#define ia64_set_rr0_to_rr4(val0, val1, val2, val3, val4) \ 23#define ia64_set_rr0_to_rr4(val0, val1, val2, val3, val4) \
22do { \ 24do { \
23 ia64_set_rr(0x0000000000000000UL, (val0)); \ 25 ia64_set_rr(0x0000000000000000UL, (val0)); \