diff options
author | Austin Clements <austin@google.com> | 2019-10-16 19:10:06 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2019-11-02 21:51:14 +0000 |
commit | a3ffb0d9eb948409c0898c6b1803401c9bc68ed4 (patch) | |
tree | b5d9aa8849a61c16b76d4a3298cdfee195951bbe /src/runtime/preempt_s390x.s | |
parent | 2d031dc559a720ec2c1939848a2e5de2782acd5a (diff) | |
download | go-a3ffb0d9eb948409c0898c6b1803401c9bc68ed4.tar.gz go-a3ffb0d9eb948409c0898c6b1803401c9bc68ed4.zip |
runtime: asynchronous preemption function for x86
This adds asynchronous preemption function for amd64 and 386. These
functions spill and restore all register state that can be used by
user Go code.
For the moment we stub out the other arches.
For #10958, #24543.
Change-Id: I6f93fabe9875f4834922a5712362e79045c00aca
Reviewed-on: https://go-review.googlesource.com/c/go/+/201759
Run-TryBot: Austin Clements <austin@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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/preempt_s390x.s b/src/runtime/preempt_s390x.s new file mode 100644 index 0000000000..5697268ce1 --- /dev/null +++ b/src/runtime/preempt_s390x.s @@ -0,0 +1,8 @@ +// Code generated by mkpreempt.go; DO NOT EDIT. + +#include "go_asm.h" +#include "textflag.h" + +TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0 + // Not implemented yet + JMP ·abort(SB) |