OLD | NEW |
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 "go_asm.h" |
| 6 #include "go_tls.h" |
6 #include "textflag.h" | 7 #include "textflag.h" |
7 | 8 |
8 // void runtime·asmstdcall(void *c); | 9 // void runtime·asmstdcall(void *c); |
9 TEXT runtime·asmstdcall(SB),NOSPLIT,$0 | 10 TEXT runtime·asmstdcall(SB),NOSPLIT,$0 |
10 MOVL fn+0(FP), BX | 11 MOVL fn+0(FP), BX |
11 | 12 |
12 // SetLastError(0). | 13 // SetLastError(0). |
13 MOVL $0, 0x34(FS) | 14 MOVL $0, 0x34(FS) |
14 | 15 |
15 // Copy args to the stack. | 16 // Copy args to the stack. |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 CALL runtime·unixnano(SB) | 425 CALL runtime·unixnano(SB) |
425 MOVL 0(SP), AX | 426 MOVL 0(SP), AX |
426 MOVL 4(SP), DX | 427 MOVL 4(SP), DX |
427 | 428 |
428 MOVL $1000000000, CX | 429 MOVL $1000000000, CX |
429 DIVL CX | 430 DIVL CX |
430 MOVL AX, sec+0(FP) | 431 MOVL AX, sec+0(FP) |
431 MOVL $0, sec+4(FP) | 432 MOVL $0, sec+4(FP) |
432 MOVL DX, nsec+8(FP) | 433 MOVL DX, nsec+8(FP) |
433 RET | 434 RET |
OLD | NEW |