ia64/linux-2.6.18-xen.hg

view arch/arm26/mm/extable.c @ 647:a5bb490065f6

Fix the build after public header sync.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 13 14:01:49 2008 +0100 (2008-08-13)
parents 831230e53067
children
line source
1 /*
2 * linux/arch/arm26/mm/extable.c
3 */
5 #include <linux/module.h>
6 #include <asm/uaccess.h>
8 int fixup_exception(struct pt_regs *regs)
9 {
10 const struct exception_table_entry *fixup;
12 fixup = search_exception_tables(instruction_pointer(regs));
14 /*
15 * The kernel runs in SVC mode - make sure we keep running in SVC mode
16 * by frobbing the PSR appropriately (PSR and PC are in the same reg.
17 * on ARM26)
18 */
19 if (fixup)
20 regs->ARM_pc = fixup->fixup | PSR_I_BIT | MODE_SVC26;
22 return fixup != NULL;
23 }