LEFT | RIGHT |
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 386, Linux | 6 // System calls and other sys.stuff for 386, Linux |
7 // | 7 // |
8 | 8 |
9 #include "zasm_GOOS_GOARCH.h" | 9 #include "zasm_GOOS_GOARCH.h" |
10 | 10 |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 RET | 424 RET |
425 | 425 |
426 TEXT runtime·sched_getaffinity(SB),7,$0 | 426 TEXT runtime·sched_getaffinity(SB),7,$0 |
427 MOVL $242, AX // syscall - sched_getaffinity | 427 MOVL $242, AX // syscall - sched_getaffinity |
428 MOVL 4(SP), BX | 428 MOVL 4(SP), BX |
429 MOVL 8(SP), CX | 429 MOVL 8(SP), CX |
430 MOVL 12(SP), DX | 430 MOVL 12(SP), DX |
431 CALL *runtime·_vdso(SB) | 431 CALL *runtime·_vdso(SB) |
432 RET | 432 RET |
433 | 433 |
| 434 // int32 runtime·epollcreate(int32 size); |
434 TEXT runtime·epollcreate(SB),7,$0 | 435 TEXT runtime·epollcreate(SB),7,$0 |
435 MOVL $254, AX | 436 MOVL $254, AX |
436 MOVL 4(SP), BX | 437 MOVL 4(SP), BX |
437 CALL *runtime·_vdso(SB) | 438 CALL *runtime·_vdso(SB) |
438 RET | 439 RET |
439 | 440 |
| 441 // int32 runtime·epollcreate1(int32 flags); |
440 TEXT runtime·epollcreate1(SB),7,$0 | 442 TEXT runtime·epollcreate1(SB),7,$0 |
441 MOVL $329, AX | 443 MOVL $329, AX |
442 MOVL 4(SP), BX | 444 MOVL 4(SP), BX |
443 CALL *runtime·_vdso(SB) | 445 CALL *runtime·_vdso(SB) |
444 RET | 446 RET |
445 | 447 |
| 448 // int32 runtime·epollctl(int32 epfd, int32 op, int32 fd, EpollEvent *ev); |
446 TEXT runtime·epollctl(SB),7,$0 | 449 TEXT runtime·epollctl(SB),7,$0 |
447 MOVL $255, AX | 450 MOVL $255, AX |
448 MOVL 4(SP), BX | 451 MOVL 4(SP), BX |
449 MOVL 8(SP), CX | 452 MOVL 8(SP), CX |
450 MOVL 12(SP), DX | 453 MOVL 12(SP), DX |
451 MOVL 16(SP), SI | 454 MOVL 16(SP), SI |
452 CALL *runtime·_vdso(SB) | 455 CALL *runtime·_vdso(SB) |
453 RET | 456 RET |
454 | 457 |
| 458 // int32 runtime·epollwait(int32 epfd, EpollEvent *ev, int32 nev, int32 timeout)
; |
455 TEXT runtime·epollwait(SB),7,$0 | 459 TEXT runtime·epollwait(SB),7,$0 |
456 MOVL $256, AX | 460 MOVL $256, AX |
457 MOVL 4(SP), BX | 461 MOVL 4(SP), BX |
458 MOVL 8(SP), CX | 462 MOVL 8(SP), CX |
459 MOVL 12(SP), DX | 463 MOVL 12(SP), DX |
460 MOVL 16(SP), SI | 464 MOVL 16(SP), SI |
461 CALL *runtime·_vdso(SB) | 465 CALL *runtime·_vdso(SB) |
462 RET | 466 RET |
| 467 |
| 468 // void runtime·closeonexec(int32 fd); |
| 469 TEXT runtime·closeonexec(SB),7,$0 |
| 470 MOVL $55, AX // fcntl |
| 471 MOVL 4(SP), BX // fd |
| 472 MOVL $2, CX // F_SETFD |
| 473 MOVL $1, DX // FD_CLOEXEC |
| 474 CALL *runtime·_vdso(SB) |
| 475 RET |
LEFT | RIGHT |