diff options
author | Helge Deller <deller@gmx.de> | 2013-10-13 15:11:30 -0400 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-11-07 16:25:33 -0500 |
commit | 61dbbaeb86c2181c79efae2d186193e0f8008af1 (patch) | |
tree | d12b369af162dcdb8835731b36da025158c8b616 /arch/parisc/kernel | |
parent | 5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (diff) |
parisc: provide macro to create exception table entries
Provide a macro ASM_EXCEPTIONTABLE_ENTRY() to create exception table
entries and convert all open-coded places to use that macro.
This patch is a first step toward creating a exception table which only
holds 32bit pointers even on a 64bit kernel. That way in my own kernel
I was able to reduce the in-kernel exception table from 44kB to 22kB.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/syscall.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index e767ab733e32..a63bb179f79a 100644 --- a/arch/parisc/kernel/syscall.S +++ b/arch/parisc/kernel/syscall.S | |||
@@ -649,10 +649,8 @@ cas_action: | |||
649 | /* Two exception table entries, one for the load, | 649 | /* Two exception table entries, one for the load, |
650 | the other for the store. Either return -EFAULT. | 650 | the other for the store. Either return -EFAULT. |
651 | Each of the entries must be relocated. */ | 651 | Each of the entries must be relocated. */ |
652 | .section __ex_table,"aw" | 652 | ASM_EXCEPTIONTABLE_ENTRY(1b-linux_gateway_page, 3b-linux_gateway_page) |
653 | ASM_ULONG_INSN (1b - linux_gateway_page), (3b - linux_gateway_page) | 653 | ASM_EXCEPTIONTABLE_ENTRY(2b-linux_gateway_page, 3b-linux_gateway_page) |
654 | ASM_ULONG_INSN (2b - linux_gateway_page), (3b - linux_gateway_page) | ||
655 | .previous | ||
656 | 654 | ||
657 | 655 | ||
658 | /* Make sure nothing else is placed on this page */ | 656 | /* Make sure nothing else is placed on this page */ |