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

Delta Between Two Patch Sets: src/pkg/runtime/sys_linux_amd64.s

Issue 7579044: code review 7579044: runtime: integrated network poller for linux (Closed)
Left Patch Set: diff -r dfbaf2b999a6 https://dvyukov%40google.com@code.google.com/p/go/ Created 11 years ago
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/sys_linux_386.s ('k') | src/pkg/runtime/thread_linux.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 350
351 // int32 runtime·epollcreate(int32 size);
351 TEXT runtime·epollcreate(SB),7,$0 352 TEXT runtime·epollcreate(SB),7,$0
352 MOVL 8(SP), DI 353 MOVL 8(SP), DI
353 MOVL $213, AX // syscall entry 354 MOVL $213, AX // syscall entry
354 SYSCALL 355 SYSCALL
355 RET 356 RET
356 357
358 // int32 runtime·epollcreate1(int32 flags);
357 TEXT runtime·epollcreate1(SB),7,$0 359 TEXT runtime·epollcreate1(SB),7,$0
358 MOVL 8(SP), DI 360 MOVL 8(SP), DI
359 MOVL $291, AX // syscall entry 361 MOVL $291, AX // syscall entry
360 SYSCALL 362 SYSCALL
361 RET 363 RET
362 364
365 // int32 runtime·epollctl(int32 epfd, int32 op, int32 fd, EpollEvent *ev);
363 TEXT runtime·epollctl(SB),7,$0 366 TEXT runtime·epollctl(SB),7,$0
364 MOVL 8(SP), DI 367 MOVL 8(SP), DI
365 MOVL 12(SP), SI 368 MOVL 12(SP), SI
366 MOVL 16(SP), DX 369 MOVL 16(SP), DX
367 MOVQ 24(SP), R10 370 MOVQ 24(SP), R10
368 MOVL $233, AX // syscall entry 371 MOVL $233, AX // syscall entry
369 SYSCALL 372 SYSCALL
370 RET 373 RET
371 374
375 // int32 runtime·epollwait(int32 epfd, EpollEvent *ev, int32 nev, int32 timeout) ;
372 TEXT runtime·epollwait(SB),7,$0 376 TEXT runtime·epollwait(SB),7,$0
373 MOVL 8(SP), DI 377 MOVL 8(SP), DI
374 MOVQ 16(SP), SI 378 MOVQ 16(SP), SI
375 MOVL 24(SP), DX 379 MOVL 24(SP), DX
376 MOVL 28(SP), R10 380 MOVL 28(SP), R10
377 MOVL $232, AX // syscall entry 381 MOVL $232, AX // syscall entry
378 SYSCALL 382 SYSCALL
379 RET 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
LEFTRIGHT

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