]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ia64: add extable.h
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 25 Dec 2016 19:24:35 +0000 (14:24 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 6 Apr 2017 23:35:49 +0000 (19:35 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/include/asm/extable.h [new file with mode: 0644]
arch/ia64/include/asm/uaccess.h
arch/ia64/mm/extable.c

diff --git a/arch/ia64/include/asm/extable.h b/arch/ia64/include/asm/extable.h
new file mode 100644 (file)
index 0000000..20376e7
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef _ASM_IA64_EXTABLE_H
+#define _ASM_IA64_EXTABLE_H
+
+#define ARCH_HAS_RELATIVE_EXTABLE
+
+struct exception_table_entry {
+       int insn;       /* location-relative address of insn this fixup is for */
+       int fixup;      /* location-relative continuation addr.; if bit 2 is set, r9 is set to 0 */
+};
+
+#endif
index d471d1a1afd038750f4e48cdfb5c343972ba2780..3f5ca0b8328a003bf0255dfd095f09a848bd25e3 100644 (file)
@@ -39,6 +39,7 @@
 #include <asm/intrinsics.h>
 #include <asm/pgtable.h>
 #include <asm/io.h>
+#include <asm/extable.h>
 
 /*
  * For historical reasons, the following macros are grossly misnamed:
@@ -341,13 +342,6 @@ extern unsigned long __strnlen_user (const char __user *, long);
        __su_ret;                                               \
 })
 
-#define ARCH_HAS_RELATIVE_EXTABLE
-
-struct exception_table_entry {
-       int insn;       /* location-relative address of insn this fixup is for */
-       int fixup;      /* location-relative continuation addr.; if bit 2 is set, r9 is set to 0 */
-};
-
 #define ARCH_HAS_TRANSLATE_MEM_PTR     1
 static __inline__ void *
 xlate_dev_mem_ptr(phys_addr_t p)
index 4edb816aba9a27131491feeb0dfadffc82d2204d..10dd4a66e16748ecaa3502279316ba5c2508ccf2 100644 (file)
@@ -5,7 +5,10 @@
  *     David Mosberger-Tang <davidm@hpl.hp.com>
  */
 
-#include <linux/uaccess.h>
+#include <asm/ptrace.h>
+#include <asm/extable.h>
+#include <asm/errno.h>
+#include <asm/processor.h>
 
 void
 ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e)