Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for libcCall (0.76 sec)

  1. src/runtime/sys_openbsd_arm.s

    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscall must be called on the g0 stack with the
    // C calling convention (use libcCall).
    //
    // syscall expects a 32-bit result and tests for 32-bit -1
    // to decide there was an error.
    TEXT runtime·syscall(SB),NOSPLIT,$0
    	MOVW	R13, R9
    	BIC     $0x7, R13		// align for ELF ABI
    
    	MOVW	R0, R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  2. src/runtime/sys_darwin_amd64.s

    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscall must be called on the g0 stack with the
    // C calling convention (use libcCall).
    //
    // syscall expects a 32-bit result and tests for 32-bit -1
    // to decide there was an error.
    TEXT runtime·syscall(SB),NOSPLIT,$16
    	MOVQ	(0*8)(DI), CX // fn
    	MOVQ	(2*8)(DI), SI // a2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  3. src/runtime/sys_darwin_arm64.s

    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscall must be called on the g0 stack with the
    // C calling convention (use libcCall).
    TEXT runtime·syscall(SB),NOSPLIT,$0
    	SUB	$16, RSP	// push structure pointer
    	MOVD	R0, 8(RSP)
    
    	MOVD	0(R0), R12	// fn
    	MOVD	16(R0), R1	// a2
    	MOVD	24(R0), R2	// a3
    	MOVD	8(R0), R0	// a1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  4. src/runtime/sys_openbsd_386.s

    //	a1    uintptr
    //	a2    uintptr
    //	a3    uintptr
    //	r1    uintptr
    //	r2    uintptr
    //	err   uintptr
    // }
    // syscall must be called on the g0 stack with the
    // C calling convention (use libcCall).
    //
    // syscall expects a 32-bit result and tests for 32-bit -1
    // to decide there was an error.
    TEXT runtime·syscall(SB),NOSPLIT,$0
    	PUSHL	BP
    	MOVL	SP, BP
    
    	SUBL	$12, SP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. src/runtime/os_solaris.go

    		mp.libcallsp = getcallersp()
    	} else {
    		mp = nil
    	}
    
    	var libcall libcall
    	libcall.fn = uintptr(unsafe.Pointer(fn))
    	libcall.n = 4
    	libcall.args = uintptr(noescape(unsafe.Pointer(&a1)))
    	asmcgocall(unsafe.Pointer(&asmsysvicall6x), unsafe.Pointer(&libcall))
    	if mp != nil {
    		mp.libcallsp = 0
    	}
    	return libcall.r1
    }
    
    //go:nosplit
    //go:cgo_unsafe_args
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. src/runtime/os2_aix.go

    // as it relies on g.m.libcall to pass arguments to asmcgocall.
    // The few cases where syscalls haven't a g or a m must call their equivalent
    // function in sys_aix_ppc64.s to handle them.
    
    //go:nowritebarrier
    //go:nosplit
    func syscall0(fn *libFunc) (r, err uintptr) {
    	gp := getg()
    	mp := gp.m
    	resetLibcall := true
    	if mp.libcallsp == 0 {
    		mp.libcallg.set(gp)
    		mp.libcallpc = getcallerpc()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  7. src/runtime/os_windows.go

    //
    //go:nosplit
    func stdcall_no_g(fn stdFunction, n int, args uintptr) uintptr {
    	libcall := libcall{
    		fn:   uintptr(unsafe.Pointer(fn)),
    		n:    uintptr(n),
    		args: args,
    	}
    	asmstdcall_trampoline(noescape(unsafe.Pointer(&libcall)))
    	return libcall.r1
    }
    
    // Calling stdcall on os stack.
    // May run during STW, so write barriers are not allowed.
    //
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  8. src/runtime/os3_solaris.go

    //go:nosplit
    //go:cgo_unsafe_args
    func doMmap(addr, n, prot, flags, fd, off uintptr) (uintptr, uintptr) {
    	var libcall libcall
    	libcall.fn = uintptr(unsafe.Pointer(&libc_mmap))
    	libcall.n = 6
    	libcall.args = uintptr(noescape(unsafe.Pointer(&addr)))
    	asmcgocall(unsafe.Pointer(&asmsysvicall6x), unsafe.Pointer(&libcall))
    	return libcall.r1, libcall.err
    }
    
    //go:nosplit
    func munmap(addr unsafe.Pointer, n uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. src/runtime/syscall_solaris.go

    func syscall_chdir(path uintptr) (err uintptr) {
    	call := libcall{
    		fn:   uintptr(unsafe.Pointer(&libc_chdir)),
    		n:    1,
    		args: uintptr(unsafe.Pointer(&path)),
    	}
    	asmcgocall(unsafe.Pointer(&asmsysvicall6x), unsafe.Pointer(&call))
    	return call.err
    }
    
    //go:nosplit
    //go:linkname syscall_chroot
    func syscall_chroot(path uintptr) (err uintptr) {
    	call := libcall{
    		fn:   uintptr(unsafe.Pointer(&libc_chroot)),
    		n:    1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. src/runtime/sys_windows_arm.s

    	MOVM.DB.W [R4, R5, R14], (R13)	// push {r4, r5, lr}
    	MOVW	R0, R4			// put libcall * in r4
    	MOVW	R13, R5			// save stack pointer in r5
    
    	// SetLastError(0)
    	MOVW	$0, R0
    	MRC	15, 0, R1, C13, C0, 2
    	MOVW	R0, 0x34(R1)
    
    	MOVW	8(R4), R12	// libcall->args
    
    	// Do we have more than 4 arguments?
    	MOVW	4(R4), R0	// libcall->n
    	SUB.S	$4, R0, R2
    	BLE	loadregs
    
    	// Reserve stack space for remaining args
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top