lin
2025-03-21 c2c82c91f6acd44c57766034b6ced0c53c164a55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
#include <linux/module.h>
#include <linux/uaccess.h>
 
int fixup_exception(struct pt_regs *regs)
{
   const struct exception_table_entry *fixup;
   unsigned long pc = instruction_pointer(regs);
 
   fixup = search_exception_tables(pc);
   if (fixup)
       regs->ctx.CurrPC = fixup->fixup;
 
   return fixup != NULL;
}