]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: drop stale check for GAS_HAS_LOCAL_TAGS
authorPeter Chubb <peterc@chubb.wattle.id.au>
Thu, 9 Oct 2003 10:19:19 +0000 (03:19 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 9 Oct 2003 10:19:19 +0000 (03:19 -0700)
GAS_HAS_LOCAL_TAGS was removed a long time ago, but uaccess.h never got
updated.  Without this fix, bad syscall args may cause a SEGFAULT instead
of failing gracefully.

include/asm-ia64/uaccess.h

index 9aa49df402473f68ad7f154656570b2e14472514..5154d4904d6911a263fb7f9694556779337861ca 100644 (file)
@@ -408,11 +408,7 @@ struct exception_table_entry {
 extern void handle_exception (struct pt_regs *regs, const struct exception_table_entry *e);
 extern const struct exception_table_entry *search_exception_tables (unsigned long addr);
 
-#ifdef GAS_HAS_LOCAL_TAGS
 # define SEARCH_EXCEPTION_TABLE(regs) search_exception_tables(regs->cr_iip + ia64_psr(regs)->ri)
-#else
-# define SEARCH_EXCEPTION_TABLE(regs) search_exception_tables(regs->cr_iip)
-#endif
 
 static inline int
 done_with_exception (struct pt_regs *regs)