github.com/shijuvar/go@v0.0.0-20141209052335-e8f13700b70c/misc/cgo/test/backdoor/thunk.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  
     7  // +build amd64 amd64p32 arm 386
     8  
     9  #include "textflag.h"
    10  
    11  #ifdef GOARCH_arm
    12  #define JMP B
    13  #endif
    14  
    15  TEXT ·LockedOSThread(SB),NOSPLIT,$0-0
    16  	JMP	runtime·lockedOSThread(SB)