]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/ia64/mm/extable.c
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
[mirror_ubuntu-zesty-kernel.git] / arch / ia64 / mm / extable.c
CommitLineData
1da177e4
LT
1/*
2 * Kernel exception handling table support. Derived from arch/alpha/mm/extable.c.
3 *
4 * Copyright (C) 1998, 1999, 2001-2002, 2004 Hewlett-Packard Co
5 * David Mosberger-Tang <davidm@hpl.hp.com>
6 */
7
7c0f6ba6 8#include <linux/uaccess.h>
1da177e4
LT
9
10void
11ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e)
12{
8fe9752e 13 long fix = (u64) &e->fixup + e->fixup;
1da177e4
LT
14
15 regs->r8 = -EFAULT;
16 if (fix & 4)
17 regs->r9 = 0;
18 regs->cr_iip = fix & ~0xf;
19 ia64_psr(regs)->ri = fix & 0x3; /* set continuation slot number */
20}