aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/arch_arm64.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-06-17 16:55:18 +0200
committerRon Evans <[email protected]>2022-06-19 11:51:12 +0200
commit9af535bf98a7cd01db85468c427020969a9b68d1 (patch)
tree06be50d3b1c709700ffd8267339561d25b757175 /src/runtime/arch_arm64.go
parent159f0051bbdb5fb48e8c0af7603e154766ec0ee9 (diff)
downloadtinygo-9af535bf98a7cd01db85468c427020969a9b68d1.tar.gz
tinygo-9af535bf98a7cd01db85468c427020969a9b68d1.zip
avr: add support for recover()
You can see that it works with the following command: tinygo run -target=simavr ./testdata/recover.go This also gets the following tests to pass again: go test -run=Build -target=simavr -v Adding support for AVR was a bit more compliated because it's also necessary to save and restore the Y register.
Diffstat (limited to 'src/runtime/arch_arm64.go')
-rw-r--r--src/runtime/arch_arm64.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/arch_arm64.go b/src/runtime/arch_arm64.go
index 500aa8443..373be8840 100644
--- a/src/runtime/arch_arm64.go
+++ b/src/runtime/arch_arm64.go
@@ -5,6 +5,8 @@ const GOARCH = "arm64"
// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 64
+const deferExtraRegs = 0
+
// Align on word boundary.
func align(ptr uintptr) uintptr {
return (ptr + 7) &^ 7