diff options
author | Russ Cox <rsc@golang.org> | 2014-11-11 17:06:22 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-11-11 17:06:22 -0500 |
commit | af060c9fb9e1b6ca292e4a49c6cb5f59ba32f854 (patch) | |
tree | 8f177704a6e848dcb20d9a27ba062fcdb13fa23a /src/runtime/thunk.s | |
parent | 9d4310437c64e72f760cf65385cf2a1563d41e9c (diff) | |
download | go-af060c9fb9e1b6ca292e4a49c6cb5f59ba32f854.tar.gz |
[dev.cc] runtime: convert assembly files for C to Go transition
The main change is that #include "zasm_GOOS_GOARCH.h"
is now #include "go_asm.h" and/or #include "go_tls.h".
Also, because C StackGuard is now Go _StackGuard,
the assembly name changes from const_StackGuard to
const__StackGuard.
In asm_$GOARCH.s, add new function getg, formerly
implemented in C.
The renamed atomics now have Go wrappers, to get
escape analysis annotations right. Those wrappers
are in CL 174860043.
LGTM=r, aram
R=r, aram
CC=austin, dvyukov, golang-codereviews, iant, khr
https://codereview.appspot.com/168510043
Diffstat (limited to 'src/runtime/thunk.s')
-rw-r--r-- | src/runtime/thunk.s | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/runtime/thunk.s b/src/runtime/thunk.s index 0a0f147c4..c201325af 100644 --- a/src/runtime/thunk.s +++ b/src/runtime/thunk.s @@ -4,7 +4,6 @@ // This file exposes various internal runtime functions to other packages in std lib. -#include "zasm_GOOS_GOARCH.h" #include "textflag.h" #ifdef GOARCH_arm @@ -181,3 +180,18 @@ TEXT syscall·runtime_envs(SB),NOSPLIT,$0-0 TEXT os·runtime_args(SB),NOSPLIT,$0-0 JMP runtime·runtime_args(SB) + +TEXT sync·runtime_procUnpin(SB),NOSPLIT,$0-0 + JMP runtime·sync_procUnpin(SB) + +TEXT sync·runtime_procPin(SB),NOSPLIT,$0-0 + JMP runtime·sync_procPin(SB) + +TEXT syscall·runtime_BeforeFork(SB),NOSPLIT,$0-0 + JMP runtime·syscall_BeforeFork(SB) + +TEXT syscall·runtime_AfterFork(SB),NOSPLIT,$0-0 + JMP runtime·syscall_AfterFork(SB) + +TEXT reflect·typelinks(SB),NOSPLIT,$0-0 + JMP runtime·typelinks(SB) |