diff --git a/arch/x86/core/reboot_rst_cnt.c b/arch/x86/core/reboot_rst_cnt.c index e20b5b7ae33..3eafcf9709c 100644 --- a/arch/x86/core/reboot_rst_cnt.c +++ b/arch/x86/core/reboot_rst_cnt.c @@ -27,12 +27,22 @@ static inline void cold_reboot(void) sys_out8(reset_value, X86_RST_CNT_REG); } +static inline void warm_reboot(void) +{ + uint8_t reset_value = X86_RST_CNT_CPU_RST | X86_RST_CNT_SYS_RST; + + sys_out8(reset_value, X86_RST_CNT_REG); +} + void __weak sys_arch_reboot(int type) { switch (type) { case SYS_REBOOT_COLD: cold_reboot(); break; + case SYS_REBOOT_WARM: + warm_reboot(); + break; default: /* do nothing */ break;