修复硬狗超时无法保存norflash bin的问题 1363/2 1363/head
authorSnickerSun <snickersun@163.com>
Thu, 7 Nov 2024 07:22:01 +0000 (15:22 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 7 Nov 2024 07:22:01 +0000 (15:22 +0800)
code/sdk/application/brandy/brandy_standard/thread_pri_init.c

index cfebd2c..48bfe83 100755 (executable)
@@ -56,6 +56,7 @@
 #endif\r
 #endif /* DSP_EXIST */\r
 #include "panic.h"\r
+#include "los_exc.h"\r
 #include "board_init.h"\r
 #include "kernel_init.h"\r
 #ifdef SUPPORT_AT_OHOSFWK\r
@@ -405,7 +406,7 @@ static void thread_main(const void *unused)
         PRINT("nmi reboot cause: 0x%x, reason: 0x%x"NEWLINE, cause, get_fault_reason());\r
         // save cputrace memory if chip watchdog reset\r
         hal_cpu_trace_clock_enable();\r
-        panic(PANIC_ASSERT, cause);\r
+        LOS_Panic("PANIC_ASSERT");\r
     }\r
 \r
     uapi_pm_control(PM_DISPLAY_POWER_UP_AND_RUN);\r