forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/sparc/kernel/traps_32.c
....@@ -18,12 +18,12 @@
1818 #include <linux/smp.h>
1919 #include <linux/kdebug.h>
2020 #include <linux/export.h>
21
+#include <linux/pgtable.h>
2122
2223 #include <asm/delay.h>
2324 #include <asm/ptrace.h>
2425 #include <asm/oplib.h>
2526 #include <asm/page.h>
26
-#include <asm/pgtable.h>
2727 #include <asm/unistd.h>
2828 #include <asm/traps.h>
2929
....@@ -103,7 +103,7 @@
103103 die_if_kernel("Kernel bad trap", regs);
104104
105105 force_sig_fault(SIGILL, ILL_ILLTRP,
106
- (void __user *)regs->pc, type - 0x80, current);
106
+ (void __user *)regs->pc, type - 0x80);
107107 }
108108
109109 void do_illegal_instruction(struct pt_regs *regs, unsigned long pc, unsigned long npc,
....@@ -327,7 +327,7 @@
327327 printk("Register Access Exception at PC %08lx NPC %08lx PSR %08lx\n",
328328 pc, npc, psr);
329329 #endif
330
- force_sig_fault(SIGBUS, BUS_OBJERR, (void __user *)pc, 0, current);
330
+ force_sig_fault(SIGBUS, BUS_OBJERR, (void __user *)pc, 0);
331331 }
332332
333333 void handle_cp_disabled(struct pt_regs *regs, unsigned long pc, unsigned long npc,