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>
Showing
src/runtime/mkpreempt.go
0 → 100644
src/runtime/preempt_386.s
0 → 100644
src/runtime/preempt_amd64.s
0 → 100644
src/runtime/preempt_arm.s
0 → 100644
src/runtime/preempt_arm64.s
0 → 100644
src/runtime/preempt_mipsx.s
0 → 100644
src/runtime/preempt_ppc64x.s
0 → 100644
src/runtime/preempt_s390x.s
0 → 100644
src/runtime/preempt_wasm.s
0 → 100644
Please register or sign in to comment