commit | 1e3d31172fce4905d8aff867d5b714a6ad3cf2ee | [log] [tgz] |
---|---|---|
author | Nicholas Flintham <nick@flinny.org> | Wed Apr 10 10:48:38 2013 +0100 |
committer | Nicholas Flintham <nick@flinny.org> | Wed Apr 10 10:48:38 2013 +0100 |
tree | ece3fe69d35f4134ad33dccec084da3d1799a5e9 | |
parent | 117af06307c28998caf049856c09dc49fd07b61a [diff] [blame] |
Initial commit from HTC m7ul-3.4.10-jb-crc-ddcfb8c
diff --git a/arch/arm/mm/extable.c b/arch/arm/mm/extable.c new file mode 100644 index 0000000..97ca061 --- /dev/null +++ b/arch/arm/mm/extable.c
@@ -0,0 +1,13 @@ +#include <linux/module.h> +#include <linux/uaccess.h> + +int fixup_exception(struct pt_regs *regs) +{ + const struct exception_table_entry *fixup; + + fixup = search_exception_tables(instruction_pointer(regs)); + if (fixup) + regs->ARM_pc = fixup->fixup; + + return fixup != NULL; +}