forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/arm64/kernel/traps.c
....@@ -48,6 +48,10 @@
4848
4949 #include <trace/hooks/traps.h>
5050
51
+#if IS_ENABLED(CONFIG_ROCKCHIP_MINIDUMP)
52
+#include <soc/rockchip/rk_minidump.h>
53
+#endif
54
+
5155 static const char *handler[]= {
5256 "Synchronous Abort",
5357 "IRQ",
....@@ -123,6 +127,9 @@
123127 int ret;
124128 unsigned long flags;
125129
130
+#if IS_ENABLED(CONFIG_ROCKCHIP_MINIDUMP)
131
+ rk_minidump_update_cpu_regs(regs);
132
+#endif
126133 raw_spin_lock_irqsave(&die_lock, flags);
127134
128135 oops_enter();
....@@ -146,7 +153,7 @@
146153 raw_spin_unlock_irqrestore(&die_lock, flags);
147154
148155 if (ret != NOTIFY_STOP)
149
- do_exit(SIGSEGV);
156
+ make_task_dead(SIGSEGV);
150157 }
151158
152159 static void arm64_show_signal(int signo, const char *str)