aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/syscall_windows.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2021-02-01 15:12:08 -0500
committerRuss Cox <rsc@golang.org>2021-02-19 00:41:03 +0000
commitc7c6c113be96b7b68f54696d2986f98dc9df64d6 (patch)
tree775e1a50c37b5d04ba82d2f8a410f1166f501114 /src/runtime/syscall_windows.go
parent3527caa7d63eab821c9936383e6c442d7a013de1 (diff)
downloadgo-c7c6c113be96b7b68f54696d2986f98dc9df64d6.tar.gz
go-c7c6c113be96b7b68f54696d2986f98dc9df64d6.zip
runtime: convert windows/arm64 assembly
The assembly is mostly a straightforward conversion of the equivalent arm assembly. This CL is part of a stack adding windows/arm64 support (#36439), intended to land in the Go 1.17 cycle. Change-Id: I61b15d712ade4d3a7285c7680de8e0987aacba10 Reviewed-on: https://go-review.googlesource.com/c/go/+/288828 Trust: Russ Cox <rsc@golang.org> Trust: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/syscall_windows.go')
-rw-r--r--src/runtime/syscall_windows.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/syscall_windows.go b/src/runtime/syscall_windows.go
index 666ec5f69e..7cf9318bdb 100644
--- a/src/runtime/syscall_windows.go
+++ b/src/runtime/syscall_windows.go
@@ -148,6 +148,7 @@ func compileCallback(fn eface, cdecl bool) (code uintptr) {
}
// cdecl, stdcall, fastcall, and arm pad arguments to word size.
+ // TODO(rsc): On arm and arm64 do we need to skip the caller's saved LR?
src += sys.PtrSize
// The Go ABI packs arguments.
dst += t.size