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

Side by Side Diff: src/syscall/asm_darwin_386.s

Issue 152570049: [dev.power64] code review 152570049: all: merge default into dev.power64 (Closed)
Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 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/syscall/asm.s ('k') | src/syscall/asm_darwin_amd64.s » ('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 // 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
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
OLDNEW
« no previous file with comments | « src/syscall/asm.s ('k') | src/syscall/asm_darwin_amd64.s » ('j') | no next file with comments »

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