github.com/choleraehyq/piD@v0.0.11/goid_go1.4.s (about)

     1  // Copyright 2014 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Assembly to get into package runtime without using exported symbols.
     6  // See https://github.com/golang/go/blob/release-branch.go1.4/misc/cgo/test/backdoor/thunk.s
     7  
     8  // +build amd64 amd64p32 arm 386
     9  // +build go1.4,!go1.5
    10  
    11  #include "textflag.h"
    12  
    13  #ifdef GOARCH_arm
    14  #define JMP B
    15  #endif
    16  
    17  TEXT ·getg(SB),NOSPLIT,$0-0
    18  	JMP	runtime·getg(SB)