Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(56)

Side by Side Diff: src/pkg/runtime/sys_linux_amd64.s

Issue 7579044: code review 7579044: runtime: integrated network poller for linux (Closed)
Patch Set: diff -r 631535312f2b https://dvyukov%40google.com@code.google.com/p/go/ Created 11 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/sys_linux_386.s ('k') | src/pkg/runtime/thread_linux.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "zasm_GOOS_GOARCH.h"
10 10
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 SYSCALL 340 SYSCALL
341 RET 341 RET
342 342
343 TEXT runtime·sched_getaffinity(SB),7,$0 343 TEXT runtime·sched_getaffinity(SB),7,$0
344 MOVQ 8(SP), DI 344 MOVQ 8(SP), DI
345 MOVL 16(SP), SI 345 MOVL 16(SP), SI
346 MOVQ 24(SP), DX 346 MOVQ 24(SP), DX
347 MOVL $204, AX // syscall entry 347 MOVL $204, AX // syscall entry
348 SYSCALL 348 SYSCALL
349 RET 349 RET
350
351 // int32 runtime·epollcreate(int32 size);
352 TEXT runtime·epollcreate(SB),7,$0
353 MOVL 8(SP), DI
354 MOVL $213, AX // syscall entry
355 SYSCALL
356 RET
357
358 // int32 runtime·epollcreate1(int32 flags);
359 TEXT runtime·epollcreate1(SB),7,$0
360 MOVL 8(SP), DI
361 MOVL $291, AX // syscall entry
362 SYSCALL
363 RET
364
365 // int32 runtime·epollctl(int32 epfd, int32 op, int32 fd, EpollEvent *ev);
366 TEXT runtime·epollctl(SB),7,$0
367 MOVL 8(SP), DI
368 MOVL 12(SP), SI
369 MOVL 16(SP), DX
370 MOVQ 24(SP), R10
371 MOVL $233, AX // syscall entry
372 SYSCALL
373 RET
374
375 // int32 runtime·epollwait(int32 epfd, EpollEvent *ev, int32 nev, int32 timeout) ;
376 TEXT runtime·epollwait(SB),7,$0
377 MOVL 8(SP), DI
378 MOVQ 16(SP), SI
379 MOVL 24(SP), DX
380 MOVL 28(SP), R10
381 MOVL $232, AX // syscall entry
382 SYSCALL
383 RET
384
385 // void runtime·closeonexec(int32 fd);
386 TEXT runtime·closeonexec(SB),7,$0
387 MOVL 8(SP), DI // fd
388 MOVQ $2, SI // F_SETFD
389 MOVQ $1, DX // FD_CLOEXEC
390 MOVL $72, AX // fcntl
391 SYSCALL
392 RET
OLDNEW
« no previous file with comments | « src/pkg/runtime/sys_linux_386.s ('k') | src/pkg/runtime/thread_linux.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b