Ayke van Laethem
ddd4a39cb8
avr: fix default handler in interrupt vector
...
Apparently the target of a weak symbol must be defined in the same file
as where it is used as a weak symbol.
https://www.avrfreaks.net/forum/using-weak-custom-vector-table#comment-745922
2018-09-24 13:03:21 +02:00
Ayke van Laethem
b9638315d2
avr: automatically generate interrupt vectors
2018-09-23 20:37:22 +02:00
Ayke van Laethem
8b94fe9205
avr: fix assembly comment regarding data/stack
2018-09-17 20:51:41 +02:00
Ayke van Laethem
77934f364f
avr: fix corrupted .data byte
...
The stack and the .data section shared the first byte, leading to
corruption of the first byte of .data.
2018-09-17 15:10:52 +02:00
Ayke van Laethem
a02426948b
avr: implement .data section
...
This doesn't completely work for some reason as the first character of
.data is corrupted, but otherwise it works.
2018-09-16 16:26:04 +02:00
Ayke van Laethem
39e3fe28db
avr: convert initialization from asm to Go
...
This increases code size by 1 instruction (2 bytes) because LLVM isn't
yet smart enough to recognize that it doesn't need to clear a register
to use 0: it can just use r1 which is always 0 according to the
convention. It makes initialization a lot easier to read, however.
2018-09-16 15:03:48 +02:00
Ayke van Laethem
76e77917d8
targets: move target-specific files to this directory
2018-09-13 00:59:39 +02:00