summaryrefslogtreecommitdiffstats
path: root/src/runtime/preempt_wasm.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/preempt_wasm.s')
-rw-r--r--src/runtime/preempt_wasm.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/preempt_wasm.s b/src/runtime/preempt_wasm.s
new file mode 100644
index 0000000..da90e8a
--- /dev/null
+++ b/src/runtime/preempt_wasm.s
@@ -0,0 +1,9 @@
+// Code generated by mkpreempt.go; DO NOT EDIT.
+
+#include "go_asm.h"
+#include "textflag.h"
+
+// 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
+ // No async preemption on wasm
+ UNDEF