We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 702de1c commit 9c5a577Copy full SHA for 9c5a577
app/src/main.c
@@ -57,7 +57,7 @@ static int sof_app_main(void)
57
return 0;
58
}
59
60
-#if CONFIG_SOF_BOOT_TEST && defined(QEMU_BOOT_TESTS)
+#if defined(QEMU_BOOT_TESTS)
61
/* cleanly exit qemu so CI can continue and check test results */
62
static inline void qemu_xtensa_exit(int status)
63
{
@@ -73,6 +73,18 @@ static inline void qemu_xtensa_exit(int status)
73
74
#endif
75
76
+#ifdef CONFIG_REBOOT
77
+void sys_arch_reboot(int type)
78
+{
79
80
+ qemu_xtensa_exit(type);
81
+#endif
82
+ while (1) {
83
+ k_cpu_idle();
84
+ }
85
+}
86
87
+
88
#if CONFIG_ZTEST
89
void test_main(void)
90
0 commit comments