mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
19 lines
498 B
ArmAsm
19 lines
498 B
ArmAsm
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
// Assembly to get into package runtime without using exported symbols.
|
||
|
// See https://github.com/golang/go/blob/release-branch.go1.4/misc/cgo/test/backdoor/thunk.s
|
||
|
|
||
|
// +build amd64 amd64p32 arm 386
|
||
|
// +build go1.4,!go1.5
|
||
|
|
||
|
#include "textflag.h"
|
||
|
|
||
|
#ifdef GOARCH_arm
|
||
|
#define JMP B
|
||
|
#endif
|
||
|
|
||
|
TEXT ·getg(SB),NOSPLIT,$0-0
|
||
|
JMP runtime·getg(SB)
|