LEFT | RIGHT |
(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 Loading... |
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 Loading... |
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 |
LEFT | RIGHT |