Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for runtime_entersyscall (0.24 sec)

  1. src/syscall/syscall_linux.go

    // nameless linkname to export to assembly here and in x/sys. Additionally,
    // entersyscall fetches the caller PC and SP and thus can't have a wrapper
    // inbetween.
    
    //go:linkname runtime_entersyscall runtime.entersyscall
    func runtime_entersyscall()
    
    //go:linkname runtime_exitsyscall runtime.exitsyscall
    func runtime_exitsyscall()
    
    // N.B. For the Syscall functions below:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  2. src/syscall/asm_darwin_amd64.s

    //
    // System call support for AMD64, Darwin
    //
    
    // Trap # in AX, args in DI SI DX, return in AX DX
    
    // func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno);
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	CALL	runtime·entersyscall<ABIInternal>(SB)
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	MOVQ	trap+0(FP), AX	// syscall entry
    	ADDQ	$0x2000000, AX
    	SYSCALL
    	JCC	ok
    	MOVQ	$-1, r1+32(FP)
    	MOVQ	$0, r2+40(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. src/syscall/asm_netbsd_arm.s

    // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
    // func Syscall9(trap int32, a1, a2, a3, a4, a5, a6, a7, a8, a9 int64) (r1, r2, err int32)
    
    TEXT	·Syscall(SB),NOSPLIT,$0-28
    	BL runtime·entersyscall(SB)
    	MOVW trap+0(FP), R0 // sigcall num
    	MOVW a1+4(FP), R1 // a1
    	MOVW a2+8(FP), R2 // a2
    	MOVW a3+12(FP), R3 // a3
    	SWI $0 // syscall
    	MOVW $0, R2
    	BCS error
    	MOVW R0, r1+16(FP) // r1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 21:13:25 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  4. src/syscall/asm_unix_386.s

    // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32);
    // Trap # in AX, args on stack above caller pc.
    
    TEXT	·Syscall(SB),NOSPLIT,$0-28
    	CALL	runtime·entersyscall(SB)
    	MOVL	trap+0(FP), AX	// syscall entry
    	// slide args down on top of system call number
    	LEAL		a1+4(FP), SI
    	LEAL		trap+0(FP), DI
    	CLD
    	MOVSL
    	MOVSL
    	MOVSL
    	INT	$0x80
    	JAE	ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  5. src/syscall/asm_freebsd_arm.s

    // func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, errno uintptr);
    // func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, errno uintptr)
    
    TEXT	·Syscall(SB),NOSPLIT,$0-28
    	BL runtime·entersyscall(SB)
    	MOVW trap+0(FP), R7 // syscall number
    	MOVW a1+4(FP), R0 // a1
    	MOVW a2+8(FP), R1 // a2
    	MOVW a3+12(FP), R2 // a3
    	SWI $0 // syscall
    	MOVW $0, R2
    	BCS error
    	MOVW R0, r1+16(FP) // r1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 23 16:52:33 UTC 2015
    - 3K bytes
    - Viewed (0)
  6. src/syscall/asm_freebsd_arm64.s

    #include "textflag.h"
    
    //
    // System call support for ARM64, FreeBSD
    //
    
    #define SYS_syscall	0
    
    // func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    TEXT ·Syscall(SB),NOSPLIT,$0-56
    	BL	runtime·entersyscall<ABIInternal>(SB)
    	MOVD	trap+0(FP), R8	// syscall entry
    	MOVD	a1+8(FP), R0
    	MOVD	a2+16(FP), R1
    	MOVD	a3+24(FP), R2
    	SVC	$SYS_syscall
    	BCC	ok
    	MOVD	$-1, R1
    	MOVD	R1, r1+32(FP)
    	MOVD	ZR, r2+40(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  7. src/syscall/asm_openbsd_mips64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64);
    TEXT ·Syscall(SB),NOSPLIT,$0-56
    	JAL	runtime·entersyscall(SB)
    	MOVV	a1+8(FP), R4
    	MOVV	a2+16(FP), R5
    	MOVV	a3+24(FP), R6
    	MOVV	R0, R7
    	MOVV	R0, R8
    	MOVV	R0, R9
    	MOVV	trap+0(FP), R2	// syscall entry
    	SYSCALL
    	BEQ	R7, ok
    	MOVV	$-1, R1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 08:08:26 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  8. src/syscall/asm_darwin_arm64.s

    #include "textflag.h"
    
    //
    // System call support for ARM64, Darwin
    //
    
    // func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	BL	runtime·entersyscall<ABIInternal>(SB)
    	MOVD	trap+0(FP), R16
    	MOVD	a1+8(FP), R0
    	MOVD	a2+16(FP), R1
    	MOVD	a3+24(FP), R2
    	SVC	$0x80
    	BCC	ok
    	MOVD	$-1, R1
    	MOVD	R1, r1+32(FP)	// r1
    	MOVD	ZR, r2+40(FP)	// r2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  9. src/syscall/asm_unix_amd64.s

    // func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64)
    // Trap # in AX, args in DI SI DX, return in AX DX
    
    TEXT	·Syscall(SB),NOSPLIT,$0-56
    	CALL	runtime·entersyscall<ABIInternal>(SB)
    	MOVQ	trap+0(FP), AX	// syscall entry
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	SYSCALL
    	JCC	ok
    	MOVQ	$-1, r1+32(FP)	// r1
    	MOVQ	$0, r2+40(FP)	// r2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  10. src/syscall/asm_freebsd_riscv64.s

    #include "textflag.h"
    
    //
    // System calls for riscv64, FreeBSD
    //
    
    // func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64)
    TEXT ·Syscall(SB),NOSPLIT,$0-56
    	CALL	runtime·entersyscall(SB)
    	MOV	a1+8(FP), A0
    	MOV	a2+16(FP), A1
    	MOV	a3+24(FP), A2
    	MOV	trap+0(FP), T0	// syscall entry
    	ECALL
    	BNE	T0, ZERO, err
    	MOV	A0, r1+32(FP)	// r1
    	MOV	A1, r2+40(FP)	// r2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:39:46 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top