diff options
Diffstat (limited to 'include/asm-sparc64/ttable.h')
-rw-r--r-- | include/asm-sparc64/ttable.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-sparc64/ttable.h b/include/asm-sparc64/ttable.h index f912f52c0c7f..972f913709a3 100644 --- a/include/asm-sparc64/ttable.h +++ b/include/asm-sparc64/ttable.h | |||
@@ -180,6 +180,26 @@ | |||
180 | #define KPROBES_TRAP(lvl) TRAP_ARG(bad_trap, lvl) | 180 | #define KPROBES_TRAP(lvl) TRAP_ARG(bad_trap, lvl) |
181 | #endif | 181 | #endif |
182 | 182 | ||
183 | #define SUN4V_ITSB_MISS \ | ||
184 | mov SCRATCHPAD_CPUID, %g1; \ | ||
185 | ldxa [%g1] ASI_SCRATCHPAD, %g2; \ | ||
186 | ldxa [%g1 + %g1] ASI_SCRATCHPAD, %g1;\ | ||
187 | sethi %hi(trap_block), %g5; \ | ||
188 | sllx %g2, TRAP_BLOCK_SZ_SHIFT, %g2; \ | ||
189 | or %g5, %lo(trap_block), %g5; \ | ||
190 | ba,pt %xcc, sun4v_itsb_miss; \ | ||
191 | add %g5, %g2, %g5; | ||
192 | |||
193 | #define SUN4V_DTSB_MISS \ | ||
194 | mov SCRATCHPAD_CPUID, %g1; \ | ||
195 | ldxa [%g1] ASI_SCRATCHPAD, %g2; \ | ||
196 | ldxa [%g1 + %g1] ASI_SCRATCHPAD, %g1;\ | ||
197 | sethi %hi(trap_block), %g5; \ | ||
198 | sllx %g2, TRAP_BLOCK_SZ_SHIFT, %g2; \ | ||
199 | or %g5, %lo(trap_block), %g5; \ | ||
200 | ba,pt %xcc, sun4v_dtsb_miss; \ | ||
201 | add %g5, %g2, %g5; | ||
202 | |||
183 | /* Before touching these macros, you owe it to yourself to go and | 203 | /* Before touching these macros, you owe it to yourself to go and |
184 | * see how arch/sparc64/kernel/winfixup.S works... -DaveM | 204 | * see how arch/sparc64/kernel/winfixup.S works... -DaveM |
185 | * | 205 | * |