mirror of
https://github.com/golang/go
synced 2024-11-24 23:47:55 -07:00
syscall: freebsd/386 Syscall9 (fix build)
R=r CC=golang-dev https://golang.org/cl/4386042
This commit is contained in:
parent
c54ed66c75
commit
62049366e7
@ -61,6 +61,36 @@ ok6:
|
|||||||
CALL runtime·exitsyscall(SB)
|
CALL runtime·exitsyscall(SB)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),7,$0
|
||||||
|
CALL runtime·entersyscall(SB)
|
||||||
|
MOVL 4(SP), AX // syscall entry
|
||||||
|
// slide args down on top of system call number
|
||||||
|
LEAL 8(SP), SI
|
||||||
|
LEAL 4(SP), DI
|
||||||
|
CLD
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
MOVSL
|
||||||
|
INT $0x80
|
||||||
|
JAE ok9
|
||||||
|
MOVL $-1, 44(SP) // r1
|
||||||
|
MOVL $-1, 48(SP) // r2
|
||||||
|
MOVL AX, 52(SP) // errno
|
||||||
|
CALL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
ok9:
|
||||||
|
MOVL AX, 44(SP) // r1
|
||||||
|
MOVL DX, 48(SP) // r2
|
||||||
|
MOVL $0, 52(SP) // errno
|
||||||
|
CALL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
TEXT ·RawSyscall(SB),7,$0
|
TEXT ·RawSyscall(SB),7,$0
|
||||||
MOVL 4(SP), AX // syscall entry
|
MOVL 4(SP), AX // syscall entry
|
||||||
// slide args down on top of system call number
|
// slide args down on top of system call number
|
||||||
|
Loading…
Reference in New Issue
Block a user