ia64: move ia64_done_with_exception out of asm/uaccess.h
Move ia64_done_with_exception out of asm/uaccess.h (which is widely used) and into asm/exception.h (like ARM has) and then ensure the few callers of it include this new header. Most of the other C content in asm files is implemented in macro form. So we do that conversion at the same time as the move. There are two C exception prototypes that move along with the macro. One of them will become redundant when we switch over to using the <linux/extable.h> instead of <linux/module.h> header in a subsequent commit. Also relocate a couple of the automated asm --> linux uaccess conversions to preserve the linux and asm independent grouping, since we are in the file at that location anyway. Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: linux-ia64@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
@@ -353,21 +353,6 @@ struct exception_table_entry {
|
||||
int fixup; /* location-relative continuation addr.; if bit 2 is set, r9 is set to 0 */
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
static inline int
|
||||
ia64_done_with_exception (struct pt_regs *regs)
|
||||
{
|
||||
const struct exception_table_entry *e;
|
||||
e = search_exception_tables(regs->cr_iip + ia64_psr(regs)->ri);
|
||||
if (e) {
|
||||
ia64_handle_exception(regs, e);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define ARCH_HAS_TRANSLATE_MEM_PTR 1
|
||||
static __inline__ void *
|
||||
xlate_dev_mem_ptr(phys_addr_t p)
|
||||
|
Reference in New Issue
Block a user