From 5deb3317cb51ac52de922bb55f8492624018906d Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Thu, 13 Sep 2012 00:40:35 +0300 Subject: Add realtek target files Signed-off-by: Roman Yeryomin --- target/linux/realtek/files/arch/rlx/mm/extable.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 target/linux/realtek/files/arch/rlx/mm/extable.c (limited to 'target/linux/realtek/files/arch/rlx/mm/extable.c') diff --git a/target/linux/realtek/files/arch/rlx/mm/extable.c b/target/linux/realtek/files/arch/rlx/mm/extable.c new file mode 100644 index 000000000..297fb9f39 --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/mm/extable.c @@ -0,0 +1,21 @@ +/* + * linux/arch/mips/mm/extable.c + */ +#include +#include +#include +#include + +int fixup_exception(struct pt_regs *regs) +{ + const struct exception_table_entry *fixup; + + fixup = search_exception_tables(exception_epc(regs)); + if (fixup) { + regs->cp0_epc = fixup->nextinsn; + + return 1; + } + + return 0; +} -- cgit v1.2.3