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

Delta Between Two Patch Sets: src/pkg/runtime/linux/386/sys.s

Issue 4452046: code review 4452046: runtime: turn "too many EPIPE" into real SIGPIPE (Closed)
Left Patch Set: Created 13 years, 11 months ago
Right Patch Set: diff -r 3c60a27e84c5 https://go.googlecode.com/hg Created 13 years, 11 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/pkg/runtime/linux/386/signal.c ('k') | src/pkg/runtime/linux/amd64/signal.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
(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 386, Linux 6 // System calls and other sys.stuff for 386, Linux
7 // 7 //
8 8
9 #include "386/asm.h" 9 #include "386/asm.h"
10 10
(...skipping 12 matching lines...) Expand all
23 RET 23 RET
24 24
25 TEXT runtime·write(SB),7,$0 25 TEXT runtime·write(SB),7,$0
26 MOVL $4, AX // syscall - write 26 MOVL $4, AX // syscall - write
27 MOVL 4(SP), BX 27 MOVL 4(SP), BX
28 MOVL 8(SP), CX 28 MOVL 8(SP), CX
29 MOVL 12(SP), DX 29 MOVL 12(SP), DX
30 INT $0x80 30 INT $0x80
31 RET 31 RET
32 32
33 TEXT runtime·raisesigpipe(SB),7,$12
34 MOVL $224, AX // syscall - gettid
35 INT $0x80
36 MOVL AX, 0(SP) // arg 1 tid
37 MOVL $13, 4(SP) // arg 2 SIGPIPE
38 MOVL $238, AX // syscall - tkill
39 INT $0x80
40 RET
33 41
34 TEXT runtime·setitimer(SB),7,$0-24 42 TEXT runtime·setitimer(SB),7,$0-24
35 MOVL $104, AX // syscall - setitimer 43 MOVL $104, AX // syscall - setitimer
36 MOVL 4(SP), BX 44 MOVL 4(SP), BX
37 MOVL 8(SP), CX 45 MOVL 8(SP), CX
38 MOVL 12(SP), DX 46 MOVL 12(SP), DX
39 INT $0x80 47 INT $0x80
40 RET 48 RET
41 49
42 TEXT runtime·gettime(SB), 7, $32 50 TEXT runtime·gettime(SB), 7, $32
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 JLS 2(PC) 300 JLS 2(PC)
293 INT $3 301 INT $3
294 302
295 // compute segment selector - (entry*8+7) 303 // compute segment selector - (entry*8+7)
296 MOVL entry+0(FP), AX 304 MOVL entry+0(FP), AX
297 SHLL $3, AX 305 SHLL $3, AX
298 ADDL $7, AX 306 ADDL $7, AX
299 MOVW AX, GS 307 MOVW AX, GS
300 308
301 RET 309 RET
LEFTRIGHT

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