OLD | NEW |
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 // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) | 5 // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) |
6 // so that go vet can check that they are correct. | 6 // so that go vet can check that they are correct. |
7 | 7 |
8 #include "../../cmd/ld/textflag.h" | 8 #include "textflag.h" |
9 | 9 |
10 // | 10 // |
11 // System call support for Plan 9 | 11 // System call support for Plan 9 |
12 // | 12 // |
13 | 13 |
14 //func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err string) | 14 //func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err string) |
15 //func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err strin
g) | 15 //func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err strin
g) |
16 //func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) | 16 //func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr) |
17 //func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) | 17 //func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr) |
18 | 18 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 MOVSQ | 153 MOVSQ |
154 RET | 154 RET |
155 | 155 |
156 //func exit(code int) | 156 //func exit(code int) |
157 // Import runtime·exit for cleanly exiting. | 157 // Import runtime·exit for cleanly exiting. |
158 TEXT ·exit(SB),NOSPLIT,$8-8 | 158 TEXT ·exit(SB),NOSPLIT,$8-8 |
159 MOVQ code+0(FP), AX | 159 MOVQ code+0(FP), AX |
160 MOVQ AX, 0(SP) | 160 MOVQ AX, 0(SP) |
161 CALL runtime·exit(SB) | 161 CALL runtime·exit(SB) |
162 RET | 162 RET |
OLD | NEW |