diff options
Diffstat (limited to 'src/runtime/debug/stubs.s')
-rw-r--r-- | src/runtime/debug/stubs.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/runtime/debug/stubs.s b/src/runtime/debug/stubs.s new file mode 100644 index 000000000..d56274f2d --- /dev/null +++ b/src/runtime/debug/stubs.s @@ -0,0 +1,21 @@ +// 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. + +#include "textflag.h" + +#ifdef GOARCH_arm +#define JMP B +#endif + +TEXT ·setMaxStack(SB),NOSPLIT,$0-0 + JMP runtime·setMaxStack(SB) + +TEXT ·setGCPercent(SB),NOSPLIT,$0-0 + JMP runtime·setGCPercent(SB) + +TEXT ·setPanicOnFault(SB),NOSPLIT,$0-0 + JMP runtime·setPanicOnFault(SB) + +TEXT ·setMaxThreads(SB),NOSPLIT,$0-0 + JMP runtime·setMaxThreads(SB) |