Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104505
b: refs/heads/master
c: 72cb425
h: refs/heads/master
i:
  104503: 9f7631f
v: v3
  • Loading branch information
Isaku Yamahata authored and Tony Luck committed May 27, 2008
1 parent e8efa44 commit d03ae22
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0e1a77ccdbc4ca59ccaf84168a0c3c1df4fadfc0
refs/heads/master: 72cb4256c7574e1c2c1350fa92eecd7cef9e4772
2 changes: 2 additions & 0 deletions trunk/include/asm-ia64/intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)); \
Expand Down
10 changes: 8 additions & 2 deletions trunk/include/asm-ia64/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,16 @@ extern struct ia64_boot_param {
* write a floating-point register right before reading the PSR
* and that writes to PSR.mfl
*/
#ifdef CONFIG_PARAVIRT
#define __local_save_flags() ia64_get_psr_i()
#else
#define __local_save_flags() ia64_getreg(_IA64_REG_PSR)
#endif

#define __local_irq_save(x) \
do { \
ia64_stop(); \
(x) = ia64_getreg(_IA64_REG_PSR); \
(x) = __local_save_flags(); \
ia64_stop(); \
ia64_rsm(IA64_PSR_I); \
} while (0)
Expand Down Expand Up @@ -174,7 +180,7 @@ do { \
#endif /* !CONFIG_IA64_DEBUG_IRQ */

#define local_irq_enable() ({ ia64_stop(); ia64_ssm(IA64_PSR_I); ia64_srlz_d(); })
#define local_save_flags(flags) ({ ia64_stop(); (flags) = ia64_getreg(_IA64_REG_PSR); })
#define local_save_flags(flags) ({ ia64_stop(); (flags) = __local_save_flags(); })

#define irqs_disabled() \
({ \
Expand Down

0 comments on commit d03ae22

Please sign in to comment.