17 lines
382 B
Text
17 lines
382 B
Text
|
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,
|