1 /*
2  * Copyright (c) 2025 Bang & Olufsen
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "kernel_shell.h"
8 
9 #include <zephyr/sys/reboot.h>
10 
cmd_kernel_panic(const struct shell * sh,size_t argc,char ** argv)11 static int cmd_kernel_panic(const struct shell *sh,
12 			    size_t argc, char **argv)
13 {
14 	ARG_UNUSED(argc);
15 	ARG_UNUSED(argv);
16 
17 	k_panic();
18 
19 	return 0;
20 }
21 
22 KERNEL_CMD_ADD(panic, NULL, "Please, panic now!", cmd_kernel_panic);
23