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 // | 5 // |
6 // System calls and other sys.stuff for AMD64, Linux | 6 // System calls and other sys.stuff for AMD64, Linux |
7 // | 7 // |
8 | 8 |
9 #include "zasm_GOOS_GOARCH.h" | 9 #include "go_asm.h" |
| 10 #include "go_tls.h" |
10 #include "textflag.h" | 11 #include "textflag.h" |
11 | 12 |
12 TEXT runtime·exit(SB),NOSPLIT,$0-4 | 13 TEXT runtime·exit(SB),NOSPLIT,$0-4 |
13 MOVL code+0(FP), DI | 14 MOVL code+0(FP), DI |
14 MOVL $231, AX // exitgroup - force all os threads to exit | 15 MOVL $231, AX // exitgroup - force all os threads to exit |
15 SYSCALL | 16 SYSCALL |
16 RET | 17 RET |
17 | 18 |
18 TEXT runtime·exit1(SB),NOSPLIT,$0-4 | 19 TEXT runtime·exit1(SB),NOSPLIT,$0-4 |
19 MOVL code+0(FP), DI | 20 MOVL code+0(FP), DI |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 RET | 402 RET |
402 | 403 |
403 // void runtime·closeonexec(int32 fd); | 404 // void runtime·closeonexec(int32 fd); |
404 TEXT runtime·closeonexec(SB),NOSPLIT,$0 | 405 TEXT runtime·closeonexec(SB),NOSPLIT,$0 |
405 MOVL fd+0(FP), DI // fd | 406 MOVL fd+0(FP), DI // fd |
406 MOVQ $2, SI // F_SETFD | 407 MOVQ $2, SI // F_SETFD |
407 MOVQ $1, DX // FD_CLOEXEC | 408 MOVQ $1, DX // FD_CLOEXEC |
408 MOVL $72, AX // fcntl | 409 MOVL $72, AX // fcntl |
409 SYSCALL | 410 SYSCALL |
410 RET | 411 RET |
LEFT | RIGHT |