1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:20:03 -07:00

syscall: avoid zeroing unused syscall arguments

This commit is contained in:
Maya Rashish 2019-04-21 14:29:45 +03:00
parent 68d4b1265e
commit f721bb2636
3 changed files with 0 additions and 21 deletions

View File

@ -17,9 +17,6 @@ TEXT ·Syscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
ADDQ $0x2000000, AX ADDQ $0x2000000, AX
SYSCALL SYSCALL
@ -100,9 +97,6 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
ADDQ $0x2000000, AX ADDQ $0x2000000, AX
SYSCALL SYSCALL

View File

@ -19,9 +19,6 @@ TEXT ·Syscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
SYSCALL SYSCALL
CMPQ AX, $0xfffffffffffff001 CMPQ AX, $0xfffffffffffff001
@ -70,9 +67,6 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
SYSCALL SYSCALL
CMPQ AX, $0xfffffffffffff001 CMPQ AX, $0xfffffffffffff001
@ -139,9 +133,6 @@ TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
SYSCALL SYSCALL
MOVQ AX, r1+32(FP) MOVQ AX, r1+32(FP)

View File

@ -21,9 +21,6 @@ TEXT ·Syscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
SYSCALL SYSCALL
JCC ok JCC ok
MOVQ $-1, r1+32(FP) // r1 MOVQ $-1, r1+32(FP) // r1
@ -65,9 +62,6 @@ TEXT ·RawSyscall(SB),NOSPLIT,$0-56
MOVQ a1+8(FP), DI MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX MOVQ a3+24(FP), DX
MOVQ $0, R10
MOVQ $0, R8
MOVQ $0, R9
MOVQ trap+0(FP), AX // syscall entry MOVQ trap+0(FP), AX // syscall entry
SYSCALL SYSCALL
JCC ok1 JCC ok1