]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
metag: switch to generic extable.h
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 25 Dec 2016 08:33:03 +0000 (03:33 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Mar 2017 22:23:42 +0000 (18:23 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/metag/include/asm/Kbuild
arch/metag/include/asm/uaccess.h
arch/mn10300/include/asm/Kbuild

index f9b9df5d6de92767b34816e45b92a7fe2d095c38..8f940553a5796bd50778fa8e75a93bf119ec751f 100644 (file)
@@ -8,6 +8,7 @@ generic-y += dma.h
 generic-y += emergency-restart.h
 generic-y += errno.h
 generic-y += exec.h
+generic-y += extable.h
 generic-y += fb.h
 generic-y += fcntl.h
 generic-y += futex.h
index 83de7554d2b33b649a8ec4aa84389b165a4af732..92ba79f63e7c473197fa000c733ef71d1f742c02 100644 (file)
@@ -52,23 +52,7 @@ static inline int verify_area(int type, const void *addr, unsigned long size)
        return access_ok(type, addr, size) ? 0 : -EFAULT;
 }
 
-/*
- * The exception table consists of pairs of addresses: the first is the
- * address of an instruction that is allowed to fault, and the second is
- * the address at which the program should continue.  No registers are
- * modified, so it is entirely up to the continuation code to figure out
- * what to do.
- *
- * All the routines below use bits of fixup code that are out of line
- * with the main instruction path.  This means when everything is well,
- * we don't even have to jump over them.  Further, they do not intrude
- * on our cache or tlb entries.
- */
-struct exception_table_entry {
-       unsigned long insn, fixup;
-};
-
-extern int fixup_exception(struct pt_regs *regs);
+#include <asm/extable.h>
 
 /*
  * These are the main single-value transfer routines.  They automatically
index 97f64c723a0c811a922437900327a728c2e462c4..ed810e7206e8df6e83b7df6c89cd0ed2b65ba53e 100644 (file)
@@ -2,6 +2,7 @@
 generic-y += barrier.h
 generic-y += clkdev.h
 generic-y += exec.h
+generic-y += extable.h
 generic-y += irq_work.h
 generic-y += mcs_spinlock.h
 generic-y += mm-arch-hooks.h