Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for libcall_err (0.27 sec)

  1. src/runtime/sys_aix_ppc64.s

    	// Store result in libcall
    	MOVD	112(R1), R5
    	MOVD	R3, (libcall_r1)(R5)
    	MOVD	$-1, R6
    	CMP	R6, R3
    	BNE	skiperrno
    
    	// Save errno in libcall
    	BL	runtime·load_g(SB)
    	MOVD	g_m(g), R4
    	MOVD	(m_mOS + mOS_perrno)(R4), R9
    	MOVW	0(R9), R9
    	MOVD	R9, (libcall_err)(R5)
    	RET
    skiperrno:
    	// Reset errno if no error has been returned
    	MOVD	R0, (libcall_err)(R5)
    	RET
    
    
    TEXT runtime·sigfwd(SB),NOSPLIT,$0-32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:29:00 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. src/runtime/sys_solaris_amd64.s

    skipargs:
    
    	// Call SysV function
    	CALL	AX
    
    	// Return result
    	POPQ	DI
    	MOVQ	AX, libcall_r1(DI)
    	MOVQ	DX, libcall_r2(DI)
    
    	get_tls(CX)
    	MOVQ	g(CX), BX
    	CMPQ	BX, $0
    	JEQ	skiperrno2
    	MOVQ	g_m(BX), BX
    	MOVQ	(m_mOS+mOS_perrno)(BX), AX
    	CMPQ	AX, $0
    	JEQ	skiperrno2
    	MOVL	0(AX), AX
    	MOVQ	AX, libcall_err(DI)
    
    skiperrno2:
    	RET
    
    // uint32 tstart_sysvicall(M *newm);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:29:00 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. src/runtime/sys_windows_386.s

    	// Call stdcall or cdecl function.
    	// DI SI BP BX are preserved, SP is not
    	CALL	libcall_fn(BX)
    	MOVL	BP, SP
    
    	// Return result.
    	MOVL	fn+0(FP), BX
    	MOVL	AX, libcall_r1(BX)
    	MOVL	DX, libcall_r2(BX)
    
    	// GetLastError().
    	MOVL	0x34(FS), AX
    	MOVL	AX, libcall_err(BX)
    
    	RET
    
    // faster get/set last error
    TEXT runtime·getlasterror(SB),NOSPLIT,$0
    	MOVL	0x34(FS), AX
    	MOVL	AX, ret+0(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. src/runtime/sys_windows_arm64.s

    _0args:
    
    	MOVD	libcall_fn(R19), R12	// branch to libcall->fn
    	BL	(R12)
    
    	MOVD	R20, RSP			// free stack space
    	MOVD	R0, libcall_r1(R19)		// save return value to libcall->r1
    	// TODO(rsc) floating point like amd64 in libcall->r2?
    
    	// GetLastError
    	MOVD	TEB_error(R18_PLATFORM), R0
    	MOVD	R0, libcall_err(R19)
    
    	// Restore callee-saved registers.
    	LDP	16(RSP), (R19, R20)
    	RET
    
    TEXT runtime·getlasterror(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 15:56:43 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. src/runtime/sys_windows_amd64.s

    	MOVQ	0(SP), CX
    	MOVQ	8(SP), SP
    	MOVQ	AX, libcall_r1(CX)
    	// Floating point return values are returned in XMM0. Setting r2 to this
    	// value in case this call returned a floating point value. For details,
    	// see https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention
    	MOVQ    X0, libcall_r2(CX)
    
    	// GetLastError().
    	MOVQ	0x30(GS), DI
    	MOVL	0x68(DI), AX
    	MOVQ	AX, libcall_err(CX)
    
    	RET
    
    // faster get/set last error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 07:24:08 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top