Skip to contentSkip to conversation

ia64: drop custom exception table implementation

PATCH Superseded Jan Beulich 3 participants 3 messages Feb 17, 2011 – Feb 18, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 ia64: drop custom exception table implementation

Now that the common extable implementation can deal with the needs ia64 has, drop its custom implementation.

---
 arch/ia64/Kconfig               |    1 
 arch/ia64/include/asm/uaccess.h |    9 ---
 arch/ia64/mm/extable.c          |   98 ----------------------------------------
 3 files changed, 4 insertions(+), 104 deletions(-)
arch/ia64/Kconfig +1 -0
@@ -12,6 +12,7 @@ config IA64
 	select ARCH_SUPPORTS_MSI
 	select HAVE_UNSTABLE_SCHED_CLOCK
 	select HAVE_IDE
+	select EXTABLE_RELATIVE_POINTERS
 	select HAVE_OPROFILE
 	select HAVE_KPROBES
 	select HAVE_KRETPROBES
arch/ia64/include/asm/uaccess.h +1 -8
@@ -340,14 +340,7 @@ extern unsigned long __strnlen_user (con
 	__su_ret;						\
 })
 
-/* Generic code can't deal with the location-relative format that we use for compactness.  */
-#define ARCH_HAS_SORT_EXTABLE
-#define ARCH_HAS_SEARCH_EXTABLE
-
-struct exception_table_entry {
-	int addr;	/* location-relative address of insn this fixup is for */
-	int cont;	/* location-relative continuation addr.; if bit 2 is set, r9 is set to 0 */
-};
+#include <asm-generic/extable.h>
 
 extern void ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e);
 extern const struct exception_table_entry *search_exception_tables (unsigned long addr);
arch/ia64/mm/extable.c +2 -96

109 lines not on this page · raw message

#1 lore raw
Quoted 10 lines · Jan Beulich

Now that the common extable implementation can deal with the needs ia64 has, drop its custom implementation.

---
 arch/ia64/Kconfig               |    1 
 arch/ia64/include/asm/uaccess.h |    9 ---
 arch/ia64/mm/extable.c          |   98 ----------------------------------------
 3 files changed, 4 insertions(+), 104 deletions(-)

Nice generalization of the exception code.

If Tony acks this patch then we can put the 3 patches into a separate -tip branch and test it on x86 and push it into -next for ia64 testing. That would be the simplest upstream merge route - if that's fine by Tony as well.

Thanks,

Ingo

Acked-by
#2 lore raw
Quoted 1 line

Nice generalization of the exception code.

Yes - nice to see x86 finally catch up with ia64's compact exception tables :-)

Quoted 3 lines

If Tony acks this patch then we can put the 3 patches into a separate -tip branch and test it on x86 and push it into -next for ia64 testing. That would be the simplest upstream merge route - if that's fine by Tony as well.

It *looks* ok. I didn't get time to try it out - but if it worked on Jan's test system, then I'm fine to have it thrown into the linux-next mix so I can pick it up with my regular linux-next tests.

-Tony