// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP)
-// so that go vet can check that they are correct.
-
#include "textflag.h"
#include "funcdata.h"
CALL runtime·entersyscall(SB)
MOVQ trap+0(FP), BP // syscall entry
// slide args down on top of system call number
- LEAQ 16(SP), SI
- LEAQ 8(SP), DI
+ LEAQ a1+8(FP), SI
+ LEAQ trap+0(FP), DI
CLD
MOVSQ
MOVSQ
CALL runtime·entersyscall(SB)
MOVQ trap+0(FP), BP // syscall entry
// slide args down on top of system call number
- LEAQ 16(SP), SI
- LEAQ 8(SP), DI
+ LEAQ a1+8(FP), SI
+ LEAQ trap+0(FP), DI
CLD
MOVSQ
MOVSQ
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
MOVQ trap+0(FP), BP // syscall entry
// slide args down on top of system call number
- LEAQ 16(SP), SI
- LEAQ 8(SP), DI
+ LEAQ a1+8(FP), SI
+ LEAQ trap+0(FP), DI
CLD
MOVSQ
MOVSQ
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
MOVQ trap+0(FP), BP // syscall entry
// slide args down on top of system call number
- LEAQ 16(SP), SI
- LEAQ 8(SP), DI
+ LEAQ a1+8(FP), SI
+ LEAQ trap+0(FP), DI
CLD
MOVSQ
MOVSQ