diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-05-19 22:13:31 +0900 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-05-27 14:39:07 -0700 |
commit | 72cb4256c7574e1c2c1350fa92eecd7cef9e4772 (patch) | |
tree | 56d2872fafa5965816d339f3cea9ff06e288c1d1 /include/asm-ia64/intrinsics.h | |
parent | 0e1a77ccdbc4ca59ccaf84168a0c3c1df4fadfc0 (diff) | |
download | op-kernel-dev-72cb4256c7574e1c2c1350fa92eecd7cef9e4772.zip op-kernel-dev-72cb4256c7574e1c2c1350fa92eecd7cef9e4772.tar.gz |
[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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-ia64/intrinsics.h b/include/asm-ia64/intrinsics.h index 9b83f8f..a3b9689 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)); \ |