goid_go1.4.s 498 B

123456789101112131415161718
  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. // Assembly to get into package runtime without using exported symbols.
  5. // See https://github.com/golang/go/blob/release-branch.go1.4/misc/cgo/test/backdoor/thunk.s
  6. // +build amd64 amd64p32 arm 386
  7. // +build go1.4,!go1.5
  8. #include "textflag.h"
  9. #ifdef GOARCH_arm
  10. #define JMP B
  11. #endif
  12. TEXT ·getg(SB),NOSPLIT,$0-0
  13. JMP runtime·getg(SB)