aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/uaccess.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2013-10-13 15:11:30 -0400
committerHelge Deller <deller@gmx.de>2013-11-07 16:25:33 -0500
commit61dbbaeb86c2181c79efae2d186193e0f8008af1 (patch)
treed12b369af162dcdb8835731b36da025158c8b616 /arch/parisc/include/asm/uaccess.h
parent5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52 (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/include/asm/uaccess.h')
-rw-r--r--arch/parisc/include/asm/uaccess.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h
index e0a82358517e..4006964d8e12 100644
--- a/arch/parisc/include/asm/uaccess.h
+++ b/arch/parisc/include/asm/uaccess.h
@@ -59,12 +59,13 @@ static inline long access_ok(int type, const void __user * addr,
59/* 59/*
60 * The exception table contains two values: the first is an address 60 * The exception table contains two values: the first is an address
61 * for an instruction that is allowed to fault, and the second is 61 * for an instruction that is allowed to fault, and the second is
62 * the address to the fixup routine. 62 * the address to the fixup routine. Even on a 64bit kernel we could
63 * use a 32bit (unsigned int) address here.
63 */ 64 */
64 65
65struct exception_table_entry { 66struct exception_table_entry {
66 unsigned long insn; /* address of insn that is allowed to fault. */ 67 unsigned long insn; /* address of insn that is allowed to fault. */
67 long fixup; /* fixup routine */ 68 unsigned long fixup; /* fixup routine */
68}; 69};
69 70
70#define ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr )\ 71#define ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr )\