1 /*
2  * Copyright (c) 2021 Katsuhiro Suzuki
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief RISC-V reboot interface
10  */
11 
12 #include <zephyr/kernel.h>
13 #include <zephyr/arch/cpu.h>
14 #include <zephyr/sys/util.h>
15 
16 /**
17  * @brief Reset the system
18  *
19  * This is stub function to avoid build error with CONFIG_REBOOT=y
20  * RISC-V specification does not have a common interface for system reset.
21  * Each RISC-V SoC that has reset feature should implement own reset function.
22  */
23 
sys_arch_reboot(int type)24 void __weak sys_arch_reboot(int type)
25 {
26 	ARG_UNUSED(type);
27 }
28