hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
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();