aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/preempt_ppc64x.s
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2019-10-16 19:10:06 -0400
committerAustin Clements <austin@google.com>2019-11-02 21:51:14 +0000
commita3ffb0d9eb948409c0898c6b1803401c9bc68ed4 (patch)
treeb5d9aa8849a61c16b76d4a3298cdfee195951bbe /src/runtime/preempt_ppc64x.s
parent2d031dc559a720ec2c1939848a2e5de2782acd5a (diff)
downloadgo-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_ppc64x.s')
-rw-r--r--src/runtime/preempt_ppc64x.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/runtime/preempt_ppc64x.s b/src/runtime/preempt_ppc64x.s
new file mode 100644
index 0000000000..7e4315a37f
--- /dev/null
+++ b/src/runtime/preempt_ppc64x.s
@@ -0,0 +1,10 @@
+// Code generated by mkpreempt.go; DO NOT EDIT.
+
+// +build ppc64 ppc64le
+
+#include "go_asm.h"
+#include "textflag.h"
+
+TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0
+ // Not implemented yet
+ JMP ·abort(SB)