We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11083fc commit 9353abfCopy full SHA for 9353abf
arch/x86/core/reboot_rst_cnt.c
@@ -27,12 +27,22 @@ static inline void cold_reboot(void)
27
sys_out8(reset_value, X86_RST_CNT_REG);
28
}
29
30
+static inline void warm_reboot(void)
31
+{
32
+ uint8_t reset_value = X86_RST_CNT_CPU_RST | X86_RST_CNT_SYS_RST;
33
+
34
+ sys_out8(reset_value, X86_RST_CNT_REG);
35
+}
36
37
void __weak sys_arch_reboot(int type)
38
{
39
switch (type) {
40
case SYS_REBOOT_COLD:
41
cold_reboot();
42
break;
43
+ case SYS_REBOOT_WARM:
44
+ warm_reboot();
45
+ break;
46
default:
47
/* do nothing */
48
0 commit comments