mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
arch: x86: make sys_arch_reboot as weak function
Intel ISH SoC can't reboot via RST_CNT register, so make sys_arch_reboot as weak function to allow implement different arch reboot in SoC layer. Signed-off-by: Dong Wang <dong.d.wang@intel.com> Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>
This commit is contained in:
@@ -27,7 +27,7 @@ static inline void cold_reboot(void)
|
||||
sys_out8(reset_value, X86_RST_CNT_REG);
|
||||
}
|
||||
|
||||
void sys_arch_reboot(int type)
|
||||
void __weak sys_arch_reboot(int type)
|
||||
{
|
||||
switch (type) {
|
||||
case SYS_REBOOT_COLD:
|
||||
|
||||
Reference in New Issue
Block a user