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 "textflag.h" | 8 #include "textflag.h" |
| 9 #include "funcdata.h" |
9 | 10 |
10 // | 11 // |
11 // System call support for 386, Darwin | 12 // System call support for 386, Darwin |
12 // | 13 // |
13 | 14 |
14 // func Syscall(trap int32, a1, a2, a3 int32) (r1, r2, err int32); | 15 // func Syscall(trap int32, a1, a2, a3 int32) (r1, r2, err int32); |
15 // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32); | 16 // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32); |
16 // Trap # in AX, args on stack above caller pc. | 17 // Trap # in AX, args on stack above caller pc. |
17 | 18 |
18 TEXT ·Syscall(SB),NOSPLIT,$0-28 | 19 TEXT ·Syscall(SB),NOSPLIT,$0-28 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 JAE ok2 | 134 JAE ok2 |
134 MOVL $-1, 32(SP) // r1 | 135 MOVL $-1, 32(SP) // r1 |
135 MOVL $-1, 36(SP) // r2 | 136 MOVL $-1, 36(SP) // r2 |
136 MOVL AX, 40(SP) // errno | 137 MOVL AX, 40(SP) // errno |
137 RET | 138 RET |
138 ok2: | 139 ok2: |
139 MOVL AX, 32(SP) // r1 | 140 MOVL AX, 32(SP) // r1 |
140 MOVL DX, 36(SP) // r2 | 141 MOVL DX, 36(SP) // r2 |
141 MOVL $0, 40(SP) // errno | 142 MOVL $0, 40(SP) // errno |
142 RET | 143 RET |
OLD | NEW |