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
2024-03-24 02:13:10 +00:00
@@ -502,9 +502,12 @@ TEXT ·cgocallback(SB),NOSPLIT,$24-24
2023-08-16 22:26:55 +00:00
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,