diff options
author | Than McIntosh <thanm@google.com> | 2020-10-14 08:36:11 -0400 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2020-10-29 15:13:09 +0000 |
commit | 50af50d136551e2009b2b52e829570536271cdaa (patch) | |
tree | ea00744bee71fee9f096928404082e6748e57b95 /src/runtime/preempt_s390x.s | |
parent | ecb79e8afa7811fd23b2e550a2bc5b22ea0aa82d (diff) | |
download | go-50af50d136551e2009b2b52e829570536271cdaa.tar.gz go-50af50d136551e2009b2b52e829570536271cdaa.zip |
reflect,runtime: use internal ABI for selected ASM routines
Change the definitions of selected runtime assembly routines
from ABI0 (the default) to ABIInternal. The ABIInternal def is
intended to indicate that these functions don't follow the existing Go
runtime ABI. In addition, convert the assembly reference to
runtime.main (from runtime.mainPC) to ABIInternal. Finally, for
functions such as "runtime.duffzero" that are called directly from
generated code, make sure that the compiler looks up the correct
ABI version.
This is intended to support the register abi work, however these
changes should not have any issues even when GOEXPERIMENT=regabi is
not in effect.
Updates #27539, #40724.
Change-Id: I9846f8dcaccc95718cf2e61a18b7e924a0677e4c
Reviewed-on: https://go-review.googlesource.com/c/go/+/262319
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/preempt_s390x.s')
-rw-r--r-- | src/runtime/preempt_s390x.s | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/preempt_s390x.s b/src/runtime/preempt_s390x.s index ca9e47cde1..c6f11571df 100644 --- a/src/runtime/preempt_s390x.s +++ b/src/runtime/preempt_s390x.s @@ -3,7 +3,8 @@ #include "go_asm.h" #include "textflag.h" -TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0 +// Note: asyncPreempt doesn't use the internal ABI, but we must be able to inject calls to it from the signal handler, so Go code has to see the PC of this function literally. +TEXT ·asyncPreempt<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-0 IPM R10 MOVD R14, -248(R15) ADD $-248, R15 |