aboutsummaryrefslogtreecommitdiff
path: root/src/sys/power.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/power.c')
-rw-r--r--src/sys/power.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/power.c b/src/sys/power.c
index 4abee01..6b04404 100644
--- a/src/sys/power.c
+++ b/src/sys/power.c
@@ -1,7 +1,8 @@
#include "../sys/core.h"
#include "../sys/power.h"
-void reboot(void) {
+void reboot(void)
+{
store32(PM_WDOG, PM_PASSWORD | 1);
store32(PM_RSTC, PM_PASSWORD | PM_RSTC_WRCFG_FULL_RESET);
}