]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc: Drop per_cpu uaccess related exception_data struct
authorHelge Deller <deller@gmx.de>
Sun, 2 Apr 2017 14:51:58 +0000 (16:51 +0200)
committerHelge Deller <deller@gmx.de>
Wed, 10 May 2017 15:46:13 +0000 (17:46 +0200)
The last users have been migrated off by commits d19f5e41b344 ("parisc:
Clean up fixup routines for get_user()/put_user()") and 554bfeceb8a2
("parisc: Fix access fault handling in pa_memcpy()").

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/uaccess.h
arch/parisc/kernel/asm-offsets.c
arch/parisc/mm/fault.c

index 6b113f39f30c9b34aa1bc6784af4b0c60ccf3074..c3e114f67485d350b7eb84b671061cf7e9950f91 100644 (file)
@@ -68,17 +68,6 @@ struct exception_table_entry {
 #define ASM_EXCEPTIONTABLE_ENTRY_EFAULT( fault_addr, except_addr )\
        ASM_EXCEPTIONTABLE_ENTRY( fault_addr, except_addr + 1)
 
-/*
- * The page fault handler stores, in a per-cpu area, the following information
- * if a fixup routine is available.
- */
-struct exception_data {
-       unsigned long fault_ip;
-       unsigned long fault_gp;
-       unsigned long fault_space;
-       unsigned long fault_addr;
-};
-
 /*
  * load_sr2() preloads the space register %%sr2 - based on the value of
  * get_fs() - with either a value of 0 to access kernel space (KERNEL_DS which
index 1c4fe61a592b3748c2555ed53065feef5aed6a53..dfff8a0d6fd1e19d129aba389ac7f7b87804c3c9 100644 (file)
@@ -297,11 +297,6 @@ int main(void)
 #else
        DEFINE(HUGEPAGE_SIZE, PAGE_SIZE);
 #endif
-       BLANK();
-       DEFINE(EXCDATA_IP, offsetof(struct exception_data, fault_ip));
-       DEFINE(EXCDATA_GP, offsetof(struct exception_data, fault_gp));
-       DEFINE(EXCDATA_SPACE, offsetof(struct exception_data, fault_space));
-       DEFINE(EXCDATA_ADDR, offsetof(struct exception_data, fault_addr));
        BLANK();
        DEFINE(ASM_PDC_RESULT_SIZE, NUM_PDC_RESULT * sizeof(unsigned long));
        BLANK();
index 32ec22146141e56f9436bfbdfaccf0256820a552..fdc34cf4eb0ee06f2653d858cda1f7560a2089b0 100644 (file)
@@ -29,8 +29,6 @@
 #define BITSSET                0x1c0   /* for identifying LDCW */
 
 
-DEFINE_PER_CPU(struct exception_data, exception_data);
-
 int show_unhandled_signals = 1;
 
 /*
@@ -143,13 +141,6 @@ int fixup_exception(struct pt_regs *regs)
 
        fix = search_exception_tables(regs->iaoq[0]);
        if (fix) {
-               struct exception_data *d;
-               d = this_cpu_ptr(&exception_data);
-               d->fault_ip = regs->iaoq[0];
-               d->fault_gp = regs->gr[27];
-               d->fault_space = regs->isr;
-               d->fault_addr = regs->ior;
-
                /*
                 * Fix up get_user() and put_user().
                 * ASM_EXCEPTIONTABLE_ENTRY_EFAULT() sets the least-significant