github.com/sujit-baniya/log@v1.0.73/goid.s (about)

     1  #include "textflag.h"
     2  
     3  #ifdef GOARCH_amd64
     4  TEXT ·goid(SB),NOSPLIT,$0-8
     5  	MOVQ (TLS), R14
     6  	MOVQ 152(R14), R13
     7  	MOVQ R13, ret+0(FP)
     8  	RET
     9  #endif
    10  
    11  #ifdef GOARCH_arm64
    12  TEXT ·goid(SB),NOSPLIT,$0-8
    13  	MOVD g, R14
    14  	MOVD 152(R14), R13
    15  	MOVD R13, ret+0(FP)
    16  	RET
    17  #endif
    18  
    19  #ifdef GOARCH_arm
    20  TEXT ·goid(SB),NOSPLIT,$0-4
    21  	MOVW g, R8
    22  	MOVW 80(R8), R7
    23  	MOVW R7, ret+0(FP)
    24  	RET
    25  #endif
    26  
    27  #ifdef GOARCH_386
    28  TEXT ·goid(SB),NOSPLIT,$0-4
    29  	MOVL (TLS), AX
    30  	MOVL 80(AX), BX
    31  	MOVL BX, ret+0(FP)
    32  	RET
    33  #endif
    34  
    35  #ifdef GOARCH_mipsle
    36  TEXT ·goid(SB),NOSPLIT,$0-4
    37  	MOVW g, R8
    38  	MOVW 80(R8), R7
    39  	MOVW R7, ret+0(FP)
    40  	RET
    41  #endif