| 1 |
// Copyright 2018 The Go Authors. All rights reserved. |
| 2 |
// Use of this source code is governed by a BSD-style |
| 3 |
// license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
#include "go_asm.h" |
| 6 |
#include "go_tls.h" |
| 7 |
#include "textflag.h" |
| 8 |
|
| 9 |
// This is the entry point for the program from the |
| 10 |
// kernel for an ordinary -buildmode=exe program. |
| 11 |
TEXT _rt0_arm64_windows(SB),NOSPLIT,$0 |
| 12 |
// Windows doesn't use argc and argv, |
| 13 |
// so there is no need to go through _rt0_arm64. |
| 14 |
JMP runtime·rt0_go(SB) |
| 15 |
|
| 16 |
// When building with -buildmode=c-shared, this symbol is called when the shared |
| 17 |
// library is loaded. |
| 18 |
TEXT _rt0_arm64_windows_lib(SB),NOSPLIT,$0 |
| 19 |
// We get the argc and argv parameters from Win32. |
| 20 |
MOVD $0, R0 |
| 21 |
MOVD $0, R1 |
| 22 |
JMP _rt0_arm64_lib(SB) |