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:
Qipeng Zha 2023-05-05 10:46:21 +08:00 committed by Maureen Helm
parent 3ee2b4c31a
commit a638223df3

View file

@ -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: