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/asm_arm.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/asm_arm.s')
-rw-r--r-- | src/runtime/asm_arm.s | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s index 0f3b5eeb8..e883d7e58 100644 --- a/src/runtime/asm_arm.s +++ b/src/runtime/asm_arm.s @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "zasm_GOOS_GOARCH.h" +#include "go_asm.h" +#include "go_tls.h" #include "funcdata.h" #include "textflag.h" @@ -1326,3 +1327,7 @@ TEXT _cgo_topofstack(SB),NOSPLIT,$8 TEXT runtime·goexit(SB),NOSPLIT,$-4-0 MOVW R0, R0 // NOP BL runtime·goexit1(SB) // does not return + +TEXT runtime·getg(SB),NOSPLIT,$-4-4 + MOVW g, ret+0(FP) + RET |