summaryrefslogtreecommitdiff
path: root/src/stm/ao_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm/ao_arch.h')
-rw-r--r--src/stm/ao_arch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stm/ao_arch.h b/src/stm/ao_arch.h
index dd9579f1..adb6eb94 100644
--- a/src/stm/ao_arch.h
+++ b/src/stm/ao_arch.h
@@ -42,7 +42,9 @@
#define __interrupt(n)
#define __at(n)
-#define ao_arch_reboot() /* XXX */
+#define CORTEX_M3_AIRCR ((uint32_t *) 0xe000ed0c)
+
+#define ao_arch_reboot() (*((uint32_t *) 0xe000ed0c) = 0x05fa0004)
#define ao_arch_nop() asm("nop")