// func Syscall9(trap int64, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int64);
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ num+0(FP), AX // syscall entry
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ $-1, r1+80(FP) // r1
MOVQ $0, r2+88(FP) // r2
MOVQ AX, err+96(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok9:
MOVQ AX, r1+80(FP) // r1
MOVQ DX, r2+88(FP) // r2
MOVQ $0, err+96(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno);
TEXT ·Syscall(SB),NOSPLIT,$0-56
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX
MOVQ $-1, r1+32(FP)
MOVQ $0, r2+40(FP)
MOVQ AX, err+48(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVQ AX, r1+32(FP)
MOVQ DX, r2+40(FP)
MOVQ $0, err+48(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno);
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX
MOVQ $-1, r1+56(FP)
MOVQ $0, r2+64(FP)
MOVQ AX, err+72(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok6:
MOVQ AX, r1+56(FP)
MOVQ DX, r2+64(FP)
MOVQ $0, err+72(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr, err Errno)
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ trap+0(FP), AX // syscall entry
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ $-1, r1+80(FP)
MOVQ $0, r2+88(FP)
MOVQ AX, err+96(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok9:
ADDQ $32, SP
MOVQ AX, r1+80(FP)
MOVQ DX, r2+88(FP)
MOVQ $0, err+96(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
// func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R16
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+32(FP) // r1
MOVD ZR, r2+40(FP) // r2
MOVD R0, err+48(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+32(FP) // r1
MOVD R1, r2+40(FP) // r2
MOVD ZR, err+48(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R16 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+56(FP) // r1
MOVD ZR, r2+64(FP) // r2
MOVD R0, err+72(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+56(FP) // r1
MOVD R1, r2+64(FP) // r2
MOVD ZR, err+72(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
// Actually Syscall7
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD num+0(FP), R16 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+80(FP) // r1
MOVD ZR, r2+88(FP) // r2
MOVD R0, err+96(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+80(FP) // r1
MOVD R1, r2+88(FP) // r2
MOVD ZR, err+96(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R8 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+32(FP)
MOVD ZR, r2+40(FP)
MOVD R0, err+48(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+32(FP)
MOVD R1, r2+40(FP)
MOVD ZR, err+48(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R8 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+56(FP)
MOVD ZR, r2+64(FP)
MOVD R0, err+72(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+56(FP)
MOVD R1, r2+64(FP)
MOVD ZR, err+72(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
// Actually Syscall7
// func Syscall9(num uintptr, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD num+0(FP), R8 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+80(FP)
MOVD ZR, r2+88(FP)
MOVD R0, err+96(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+80(FP)
MOVD R1, r2+88(FP)
MOVD ZR, err+96(FP)
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// would pass 4th arg in CX, not R10.
TEXT ·Syscall(SB),NOSPLIT,$0-56
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX
MOVQ $0, r2+40(FP)
NEGQ AX
MOVQ AX, err+48(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVQ AX, r1+32(FP)
MOVQ DX, r2+40(FP)
MOVQ $0, err+48(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ a3+24(FP), DX
MOVQ $0, r2+64(FP)
NEGQ AX
MOVQ AX, err+72(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok6:
MOVQ AX, r1+56(FP)
MOVQ DX, r2+64(FP)
MOVQ $0, err+72(FP)
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
// func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64);
TEXT ·Syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD a3+24(FP), R2
MOVD ZR, r2+40(FP) // r2
NEG R0, R0
MOVD R0, err+48(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+32(FP) // r1
MOVD R1, r2+40(FP) // r2
MOVD ZR, err+48(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD a3+24(FP), R2
MOVD ZR, r2+64(FP) // r2
NEG R0, R0
MOVD R0, err+72(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+56(FP) // r1
MOVD R1, r2+64(FP) // r2
MOVD ZR, err+72(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
// func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64);
TEXT ·Syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD a1+8(FP), R3
MOVD a2+16(FP), R4
MOVD a3+24(FP), R5
MOVD R4, r1+32(FP) // r1
MOVD R0, r2+40(FP) // r2
MOVD R3, err+48(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R3, r1+32(FP) // r1
MOVD R0, r2+40(FP) // r2
MOVD R0, err+48(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD a1+8(FP), R3
MOVD a2+16(FP), R4
MOVD a3+24(FP), R5
MOVD R4, r1+56(FP) // r1
MOVD R0, r2+64(FP) // r2
MOVD R3, err+72(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok6:
MOVD R3, r1+56(FP) // r1
MOVD R0, r2+64(FP) // r2
MOVD R0, err+72(FP) // errno
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
// func Syscall9(trap int64, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int64);
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ num+0(FP), AX // syscall entry
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ $-1, 88(SP) // r1
MOVQ $0, 96(SP) // r2
MOVQ AX, 104(SP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok9:
ADDQ $32, SP
MOVQ AX, 88(SP) // r1
MOVQ DX, 96(SP) // r2
MOVQ $0, 104(SP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
// func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall(SB),NOSPLIT,$0-56
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R17
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+32(FP) // r1
MOVD ZR, r2+40(FP) // r2
MOVD R0, err+48(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+32(FP) // r1
MOVD R1, r2+40(FP) // r2
MOVD ZR, err+48(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
// func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD trap+0(FP), R17 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+56(FP) // r1
MOVD ZR, r2+64(FP) // r2
MOVD R0, err+72(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+56(FP) // r1
MOVD R1, r2+64(FP) // r2
MOVD ZR, err+72(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
// func RawSyscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr)
// Actually Syscall7
TEXT ·Syscall9(SB),NOSPLIT,$0-104
- BL runtime·entersyscall(SB)
+ BL runtime·entersyscall<ABIInternal>(SB)
MOVD num+0(FP), R17 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD R1, r1+80(FP) // r1
MOVD ZR, r2+88(FP) // r2
MOVD R0, err+96(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVD R0, r1+80(FP) // r1
MOVD R1, r2+88(FP) // r2
MOVD ZR, err+96(FP) // err
- BL runtime·exitsyscall(SB)
+ BL runtime·exitsyscall<ABIInternal>(SB)
RET
-
TEXT ·Syscall(SB),NOSPLIT,$168-64
NO_LOCAL_POINTERS
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ trap+0(FP), BP // syscall entry
// copy args down
LEAQ a1+8(FP), SI
MOVQ $128, sysargs1-152(SP)
MOVQ $SYS_ERRSTR, BP
SYSCALL
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
MOVQ sysargs-160(SP), AX
MOVQ AX, errbuf-168(SP)
CALL runtime·gostring(SB)
JMP copyresult3
ok3:
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
LEAQ ·emptystring(SB), SI
copyresult3:
TEXT ·Syscall6(SB),NOSPLIT,$168-88
NO_LOCAL_POINTERS
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ trap+0(FP), BP // syscall entry
// copy args down
LEAQ a1+8(FP), SI
MOVQ $128, sysargs1-152(SP)
MOVQ $SYS_ERRSTR, BP
SYSCALL
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
MOVQ sysargs-160(SP), AX
MOVQ AX, errbuf-168(SP)
CALL runtime·gostring(SB)
JMP copyresult4
ok4:
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
LEAQ ·emptystring(SB), SI
copyresult4:
// Trap # in AX, args in DI SI DX, return in AX DX
TEXT ·Syscall(SB),NOSPLIT,$0-56
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ trap+0(FP), AX // syscall entry
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ $-1, r1+32(FP) // r1
MOVQ $0, r2+40(FP) // r2
MOVQ AX, err+48(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok:
MOVQ AX, r1+32(FP) // r1
MOVQ DX, r2+40(FP) // r2
MOVQ $0, err+48(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·Syscall6(SB),NOSPLIT,$0-80
- CALL runtime·entersyscall(SB)
+ CALL runtime·entersyscall<ABIInternal>(SB)
MOVQ trap+0(FP), AX // syscall entry
MOVQ a1+8(FP), DI
MOVQ a2+16(FP), SI
MOVQ $-1, r1+56(FP) // r1
MOVQ $0, r2+64(FP) // r2
MOVQ AX, err+72(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
ok6:
MOVQ AX, r1+56(FP) // r1
MOVQ DX, r2+64(FP) // r2
MOVQ $0, err+72(FP) // errno
- CALL runtime·exitsyscall(SB)
+ CALL runtime·exitsyscall<ABIInternal>(SB)
RET
TEXT ·RawSyscall(SB),NOSPLIT,$0-56