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

Side by Side Diff: src/pkg/runtime/linux/amd64/sys.s

Issue 4711045: code review 4711045: runtime: improve Linux mutex (Closed)
Patch Set: diff -r c162ec4be385 https://go.googlecode.com/hg/ Created 13 years, 7 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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/linux/amd64/defs.h ('k') | src/pkg/runtime/linux/arm/defs.h » ('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 "amd64/asm.h" 9 #include "amd64/asm.h"
10 10
(...skipping 10 matching lines...) Expand all
21 RET 21 RET
22 22
23 TEXT runtime·open(SB),7,$0-16 23 TEXT runtime·open(SB),7,$0-16
24 MOVQ 8(SP), DI 24 MOVQ 8(SP), DI
25 MOVL 16(SP), SI 25 MOVL 16(SP), SI
26 MOVL 20(SP), DX 26 MOVL 20(SP), DX
27 MOVL $2, AX // syscall entry 27 MOVL $2, AX // syscall entry
28 SYSCALL 28 SYSCALL
29 RET 29 RET
30 30
31 TEXT runtime·close(SB),7,$0-16
32 MOVL 8(SP), DI
33 MOVL $3, AX // syscall entry
34 SYSCALL
35 RET
36
31 TEXT runtime·write(SB),7,$0-24 37 TEXT runtime·write(SB),7,$0-24
32 MOVL 8(SP), DI 38 MOVL 8(SP), DI
33 MOVQ 16(SP), SI 39 MOVQ 16(SP), SI
34 MOVL 24(SP), DX 40 MOVL 24(SP), DX
35 MOVL $1, AX // syscall entry 41 MOVL $1, AX // syscall entry
36 SYSCALL 42 SYSCALL
37 RET 43 RET
38 44
45 TEXT runtime·read(SB),7,$0-24
46 MOVL 8(SP), DI
47 MOVQ 16(SP), SI
48 MOVL 24(SP), DX
49 MOVL $0, AX // syscall entry
50 SYSCALL
51 RET
52
39 TEXT runtime·raisesigpipe(SB),7,$12 53 TEXT runtime·raisesigpipe(SB),7,$12
40 MOVL $186, AX // syscall - gettid 54 MOVL $186, AX // syscall - gettid
41 SYSCALL 55 SYSCALL
42 MOVL AX, DI // arg 1 tid 56 MOVL AX, DI // arg 1 tid
43 MOVL $13, SI // arg 2 SIGPIPE 57 MOVL $13, SI // arg 2 SIGPIPE
44 MOVL $200, AX // syscall - tkill 58 MOVL $200, AX // syscall - tkill
45 SYSCALL 59 SYSCALL
46 RET 60 RET
47 61
48 TEXT runtime·setitimer(SB),7,$0-24 62 TEXT runtime·setitimer(SB),7,$0-24
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 239
226 MOVQ DI, SI 240 MOVQ DI, SI
227 MOVQ $0x1002, DI // ARCH_SET_FS 241 MOVQ $0x1002, DI // ARCH_SET_FS
228 MOVQ $158, AX // arch_prctl 242 MOVQ $158, AX // arch_prctl
229 SYSCALL 243 SYSCALL
230 CMPQ AX, $0xfffffffffffff001 244 CMPQ AX, $0xfffffffffffff001
231 JLS 2(PC) 245 JLS 2(PC)
232 CALL runtime·notok(SB) 246 CALL runtime·notok(SB)
233 RET 247 RET
234 248
249 TEXT runtime·osyield(SB),7,$0
250 MOVL $24, AX
251 SYSCALL
252 RET
OLDNEW
« no previous file with comments | « src/pkg/runtime/linux/amd64/defs.h ('k') | src/pkg/runtime/linux/arm/defs.h » ('j') | no next file with comments »

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