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

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

Issue 168510043: [dev.cc] code review 168510043: runtime: convert assembly files for C to Go transition (Closed)
Left Patch Set: Created 10 years, 4 months ago
Right Patch Set: diff -r 022e3ed374e79747b98f073a69de1c7c6ca53efc https://code.google.com/p/go Created 10 years, 4 months 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/runtime/sys_linux_386.s ('k') | src/runtime/sys_linux_arm.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
LEFTRIGHT

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