From 9af535bf98a7cd01db85468c427020969a9b68d1 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 17 Jun 2022 16:55:18 +0200 Subject: 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. --- src/runtime/arch_arm64.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/arch_arm64.go') 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 -- cgit v1.2.3