Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104504
b: refs/heads/master
c: 0e1a77c
h: refs/heads/master
v: v3
  • Loading branch information
Isaku Yamahata authored and Tony Luck committed May 27, 2008
1 parent 9f7631f commit e8efa44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 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: 8311d21c35092aa4c4a12e0140e1ef3443489d77
refs/heads/master: 0e1a77ccdbc4ca59ccaf84168a0c3c1df4fadfc0
9 changes: 9 additions & 0 deletions trunk/include/asm-ia64/intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
# include <asm/gcc_intrin.h>
#endif

#define ia64_set_rr0_to_rr4(val0, val1, val2, val3, val4) \
do { \
ia64_set_rr(0x0000000000000000UL, (val0)); \
ia64_set_rr(0x2000000000000000UL, (val1)); \
ia64_set_rr(0x4000000000000000UL, (val2)); \
ia64_set_rr(0x6000000000000000UL, (val3)); \
ia64_set_rr(0x8000000000000000UL, (val4)); \
} while (0)

/*
* Force an unresolved reference if someone tries to use
* ia64_fetch_and_add() with a bad value.
Expand Down
6 changes: 1 addition & 5 deletions trunk/include/asm-ia64/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ reload_context (nv_mm_context_t context)
# endif
#endif

ia64_set_rr(0x0000000000000000UL, rr0);
ia64_set_rr(0x2000000000000000UL, rr1);
ia64_set_rr(0x4000000000000000UL, rr2);
ia64_set_rr(0x6000000000000000UL, rr3);
ia64_set_rr(0x8000000000000000UL, rr4);
ia64_set_rr0_to_rr4(rr0, rr1, rr2, rr3, rr4);
ia64_srlz_i(); /* srlz.i implies srlz.d */
}

Expand Down

0 comments on commit e8efa44

Please sign in to comment.