aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.S
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-04-14 17:55:07 +0200
committerAyke van Laethem <[email protected]>2020-06-27 01:22:31 +0200
commitce0abac5a3f4373fe944ba6ff5fe38c68bb65e29 (patch)
treef9c649ca01b4db703db5e597519e00300097edda /targets/avr.S
parent43d7f48de4cd82ba810690b806a78b0d690fc29d (diff)
downloadtinygo-avr-compiler-rt.tar.gz
tinygo-avr-compiler-rt.zip
avr: use compiler-rtavr-compiler-rt
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