diff options
| author | Russ Cox <rsc@golang.org> | 2008-09-16 13:42:47 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-09-16 13:42:47 -0700 |
| commit | e8a02230f215efb075cccd4146b3d0d1ada4870e (patch) | |
| tree | 9f656df558356b50f93329d1697852b7a3feb2ef /src/syscall/syscall_amd64_linux.s | |
| parent | 6820196b75daf4282ba46a62e84ed44e9a4fd09e (diff) | |
| download | go-e8a02230f215efb075cccd4146b3d0d1ada4870e.tar.xz | |
preliminary network - just Dial for now
R=r,presotto
OCL=15393
CL=15399
Diffstat (limited to 'src/syscall/syscall_amd64_linux.s')
| -rw-r--r-- | src/syscall/syscall_amd64_linux.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/syscall/syscall_amd64_linux.s b/src/syscall/syscall_amd64_linux.s index e69fe7aadd..a0b72ceedb 100644 --- a/src/syscall/syscall_amd64_linux.s +++ b/src/syscall/syscall_amd64_linux.s @@ -29,6 +29,27 @@ TEXT syscall·Syscall(SB),7,$-8 MOVQ $0, 56(SP) // errno RET +TEXT syscall·Syscall6(SB),7,$-8 + MOVQ 16(SP), DI + MOVQ 24(SP), SI + MOVQ 32(SP), DX + MOVQ 40(SP), R10 + MOVQ 48(SP), R8 + MOVQ 56(SP), R9 + MOVQ 8(SP), AX // syscall entry + ADDQ $0x2000000, AX + SYSCALL + JLS 6(PC) + MOVQ $-1, 64(SP) // r1 + MOVQ $0, 72(SP) // r2 + NEGQ AX + MOVQ AX, 80(SP) // errno + RET + MOVQ AX, 64(SP) // r1 + MOVQ DX, 72(SP) // r2 + MOVQ $0, 80(SP) // errno + RET + // conversion operators - really just casts TEXT syscall·AddrToInt(SB),7,$-8 MOVQ 8(SP), AX |
