forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/parisc/kernel/traps.c
....@@ -268,7 +268,7 @@
268268 panic("Fatal exception");
269269
270270 oops_exit();
271
- do_exit(SIGSEGV);
271
+ make_task_dead(SIGSEGV);
272272 }
273273
274274 /* gdb uses break 4,8 */
....@@ -305,8 +305,8 @@
305305 #endif
306306
307307 #ifdef CONFIG_KGDB
308
- if (unlikely(iir == PARISC_KGDB_COMPILED_BREAK_INSN ||
309
- iir == PARISC_KGDB_BREAK_INSN)) {
308
+ if (unlikely((iir == PARISC_KGDB_COMPILED_BREAK_INSN ||
309
+ iir == PARISC_KGDB_BREAK_INSN)) && !user_mode(regs)) {
310310 kgdb_handle_exception(9, SIGTRAP, 0, regs);
311311 return;
312312 }