mirror of
https://github.com/golang/go
synced 2024-10-03 05:21:22 -06:00
15ced2d008
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://golang.org/cl/168510043
21 lines
481 B
ArmAsm
21 lines
481 B
ArmAsm
// Copyright 2011 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 "go_asm.h"
|
|
#include "go_tls.h"
|
|
#include "textflag.h"
|
|
|
|
TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8
|
|
LEAQ 8(SP), SI // argv
|
|
MOVQ 0(SP), DI // argc
|
|
MOVQ $main(SB), AX
|
|
JMP AX
|
|
|
|
TEXT main(SB),NOSPLIT,$-8
|
|
MOVQ $runtime·rt0_go(SB), AX
|
|
JMP AX
|
|
|
|
DATA runtime·iswindows(SB)/4, $1
|
|
GLOBL runtime·iswindows(SB), NOPTR, $4
|