diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-05-12 01:26:22 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-12-02 04:06:54 +0100 |
commit | 1e8341ae0c0e117f0626cd6cf6732a0a9c8723f2 (patch) | |
tree | 61b9d4f33170120c060466bc4bc85586cddb3a26 /arch/powerpc/mm/tlb_nohash.c | |
parent | powerpc/ps3: Remove inline marking of EXPORT_SYMBOL functions (diff) | |
download | linux-1e8341ae0c0e117f0626cd6cf6732a0a9c8723f2.tar.xz linux-1e8341ae0c0e117f0626cd6cf6732a0a9c8723f2.zip |
powerpc: Move the patch_exception to a common place
So that it can be used by other codes. No function change.
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/tlb_nohash.c')
-rw-r--r-- | arch/powerpc/mm/tlb_nohash.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/powerpc/mm/tlb_nohash.c index 358d74303138..8805b7b87dc6 100644 --- a/arch/powerpc/mm/tlb_nohash.c +++ b/arch/powerpc/mm/tlb_nohash.c @@ -518,25 +518,6 @@ static void setup_page_sizes(void) } } -static void __patch_exception(int exc, unsigned long addr) -{ - extern unsigned int interrupt_base_book3e; - unsigned int *ibase = &interrupt_base_book3e; - - /* Our exceptions vectors start with a NOP and -then- a branch - * to deal with single stepping from userspace which stops on - * the second instruction. Thus we need to patch the second - * instruction of the exception, not the first one - */ - - patch_branch(ibase + (exc / 4) + 1, addr, 0); -} - -#define patch_exception(exc, name) do { \ - extern unsigned int name; \ - __patch_exception((exc), (unsigned long)&name); \ -} while (0) - static void setup_mmu_htw(void) { /* Check if HW tablewalk is present, and if yes, enable it by: |