Skip to content

Commit c3e5523

Browse files
committed
parisc: Drop per_cpu uaccess related exception_data struct
The last users have been migrated off by commits d19f5e4 ("parisc: Clean up fixup routines for get_user()/put_user()") and 554bfec ("parisc: Fix access fault handling in pa_memcpy()"). Signed-off-by: Helge Deller <[email protected]>
1 parent 741394c commit c3e5523

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

arch/parisc/include/asm/uaccess.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ struct exception_table_entry {
6868
#define ASM_EXCEPTIONTABLE_ENTRY_EFAULT( fault_addr, except_addr )\
6969
ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr + 1)
7070

71-
/*
72-
* The page fault handler stores, in a per-cpu area, the following information
73-
* if a fixup routine is available.
74-
*/
75-
struct exception_data {
76-
unsigned long fault_ip;
77-
unsigned long fault_gp;
78-
unsigned long fault_space;
79-
unsigned long fault_addr;
80-
};
81-
8271
/*
8372
* load_sr2() preloads the space register %%sr2 - based on the value of
8473
* get_fs() - with either a value of 0 to access kernel space (KERNEL_DS which

arch/parisc/kernel/asm-offsets.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,6 @@ int main(void)
297297
#else
298298
DEFINE(HUGEPAGE_SIZE, PAGE_SIZE);
299299
#endif
300-
BLANK();
301-
DEFINE(EXCDATA_IP, offsetof(struct exception_data, fault_ip));
302-
DEFINE(EXCDATA_GP, offsetof(struct exception_data, fault_gp));
303-
DEFINE(EXCDATA_SPACE, offsetof(struct exception_data, fault_space));
304-
DEFINE(EXCDATA_ADDR, offsetof(struct exception_data, fault_addr));
305300
BLANK();
306301
DEFINE(ASM_PDC_RESULT_SIZE, NUM_PDC_RESULT * sizeof(unsigned long));
307302
BLANK();

arch/parisc/mm/fault.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
#define BITSSET 0x1c0 /* for identifying LDCW */
3030

3131

32-
DEFINE_PER_CPU(struct exception_data, exception_data);
33-
3432
int show_unhandled_signals = 1;
3533

3634
/*
@@ -143,13 +141,6 @@ int fixup_exception(struct pt_regs *regs)
143141

144142
fix = search_exception_tables(regs->iaoq[0]);
145143
if (fix) {
146-
struct exception_data *d;
147-
d = this_cpu_ptr(&exception_data);
148-
d->fault_ip = regs->iaoq[0];
149-
d->fault_gp = regs->gr[27];
150-
d->fault_space = regs->isr;
151-
d->fault_addr = regs->ior;
152-
153144
/*
154145
* Fix up get_user() and put_user().
155146
* ASM_EXCEPTIONTABLE_ENTRY_EFAULT() sets the least-significant

0 commit comments

Comments
 (0)