ports/lang/go/patches/patch-src_runtime_asm_mips64x_s

17 lines
382 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: src/runtime/asm_mips64x.s
--- src/runtime/asm_mips64x.s.orig
+++ src/runtime/asm_mips64x.s
@@ -479,9 +479,12 @@ TEXT ·cgocallback(SB),NOSPLIT,$24-24
loadg:
// Load m and g from thread-local storage.
+#ifndef GOOS_openbsd
MOVB runtime·iscgo(SB), R1
BEQ R1, nocgo
+#endif
JAL runtime·load_g(SB)
+
nocgo:
// If g is nil, Go did not create the current thread,