LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "zasm_GOOS_GOARCH.h" | 5 #include "zasm_GOOS_GOARCH.h" |
6 #include "funcdata.h" | 6 #include "funcdata.h" |
7 #include "../../cmd/ld/textflag.h" | 7 #include "../../cmd/ld/textflag.h" |
8 | 8 |
9 TEXT _rt0_go(SB),NOSPLIT,$0 | 9 TEXT runtime·rt0_go(SB),NOSPLIT,$0 |
10 // copy arguments forward on an even stack | 10 // copy arguments forward on an even stack |
11 MOVL argc+0(FP), AX | 11 MOVL argc+0(FP), AX |
12 MOVL argv+4(FP), BX | 12 MOVL argv+4(FP), BX |
13 SUBL $128, SP // plenty of scratch | 13 SUBL $128, SP // plenty of scratch |
14 ANDL $~15, SP | 14 ANDL $~15, SP |
15 MOVL AX, 120(SP) // save argc, argv away | 15 MOVL AX, 120(SP) // save argc, argv away |
16 MOVL BX, 124(SP) | 16 MOVL BX, 124(SP) |
17 | 17 |
18 // set default stack bounds. | 18 // set default stack bounds. |
19 // _cgo_init may update stackguard. | 19 // _cgo_init may update stackguard. |
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 MOVL g(CX), AX | 2288 MOVL g(CX), AX |
2289 MOVL g_m(AX), AX | 2289 MOVL g_m(AX), AX |
2290 MOVL m_fastrand(AX), DX | 2290 MOVL m_fastrand(AX), DX |
2291 ADDL DX, DX | 2291 ADDL DX, DX |
2292 MOVL DX, BX | 2292 MOVL DX, BX |
2293 XORL $0x88888eef, DX | 2293 XORL $0x88888eef, DX |
2294 CMOVLMI BX, DX | 2294 CMOVLMI BX, DX |
2295 MOVL DX, m_fastrand(AX) | 2295 MOVL DX, m_fastrand(AX) |
2296 MOVL DX, ret+0(FP) | 2296 MOVL DX, ret+0(FP) |
2297 RET | 2297 RET |
LEFT | RIGHT |