diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-08-18 15:08:32 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-08-28 00:24:13 -0400 |
commit | 4b98d9e713a03bd79ced8800e24a56359f9effbf (patch) | |
tree | 3c1ca441b80f907241a6dd065feb0879436d40e2 /arch/powerpc/include | |
parent | 6c188829d2c20a1d02aedb13db34b3ca2a8f0dc4 (diff) |
powerpc/book3e-64: Add helper function to setup IVORs
Not all 64-bit Book-3E parts will have fixed IVORs so add a function that
cpusetup code can call to setup the base IVORs (0..15) to match the fixed
offsets. We need to 'or' part of interrupt_base_book3e into the IVORs
since on parts that have them the IVPR doesn't extend as far down.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/exception-64e.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/exception-64e.h b/arch/powerpc/include/asm/exception-64e.h index 94cb3d79d125..6d53f311d942 100644 --- a/arch/powerpc/include/asm/exception-64e.h +++ b/arch/powerpc/include/asm/exception-64e.h | |||
@@ -196,6 +196,10 @@ exc_##label##_book3e: | |||
196 | #define TLB_MISS_STATS_SAVE_INFO | 196 | #define TLB_MISS_STATS_SAVE_INFO |
197 | #endif | 197 | #endif |
198 | 198 | ||
199 | #define SET_IVOR(vector_number, vector_offset) \ | ||
200 | li r3,vector_offset@l; \ | ||
201 | ori r3,r3,interrupt_base_book3e@l; \ | ||
202 | mtspr SPRN_IVOR##vector_number,r3; | ||
199 | 203 | ||
200 | #endif /* _ASM_POWERPC_EXCEPTION_64E_H */ | 204 | #endif /* _ASM_POWERPC_EXCEPTION_64E_H */ |
201 | 205 | ||