aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.S
diff options
context:
space:
mode:
Diffstat (limited to 'targets/avr.S')
-rw-r--r--targets/avr.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/targets/avr.S b/targets/avr.S
index c5881c820..47be1fdd3 100644
--- a/targets/avr.S
+++ b/targets/avr.S
@@ -2,6 +2,30 @@
; in Go.
; The reset vector is device-specific and is generated by tools/gen-device-avr.py.
+#ifndef xl
+#define xl r26
+#endif
+
+#ifndef xh
+#define xh r27
+#endif
+
+#ifndef yl
+#define yl r28
+#endif
+
+#ifndef yh
+#define yh r29
+#endif
+
+#ifndef zl
+#define zl r30
+#endif
+
+#ifndef zh
+#define zh r31
+#endif
+
; Startup code
.section .text.__vector_RESET
.global __vector_RESET