Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for m_curg (0.19 sec)

  1. src/runtime/time_linux_amd64.s

    	MOVQ	m_vdsoSP(BX), DX
    	MOVQ	CX, 0(SP)
    	MOVQ	DX, 8(SP)
    
    	LEAQ	sec+0(FP), DX
    	MOVQ	-8(DX), CX	// Sets CX to function return address.
    	MOVQ	CX, m_vdsoPC(BX)
    	MOVQ	DX, m_vdsoSP(BX)
    
    	CMPQ	R14, m_curg(BX)	// Only switch if on curg.
    	JNE	noswitch
    
    	MOVQ	m_g0(BX), DX
    	MOVQ	(g_sched+gobuf_sp)(DX), SP	// Set SP to g0 stack
    
    noswitch:
    	SUBQ	$32, SP		// Space for two time results
    	ANDQ	$~15, SP	// Align for C code
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 2K bytes
    - Viewed (0)
  2. src/runtime/asm_mips64x.s

    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:45:59 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  3. src/runtime/sys_linux_ppc64x.s

    	MOVD	g_m(R9), R6
    	CMP	$0, R6
    	BEQ	sigtramp    // g.m == nil
    	MOVW	m_ncgo(R6), R7
    	CMPW	$0, R7
    	BEQ	sigtramp    // g.m.ncgo = 0
    	MOVD	m_curg(R6), R7
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.curg == nil
    	MOVD	g_syscallsp(R7), R7
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.curg.syscallsp == 0
    	MOVD	m_cgoCallers(R6), R7 // R7 is the fifth arg in C calling convention.
    	CMP	$0, R7
    	BEQ	sigtramp    // g.m.cgoCallers == nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. src/runtime/asm_wasm.s

    	// if g == g0
    	Get g
    	Get R2
    	I64Eq
    	If
    		// no switch:
    		MOVD R0, CTXT
    
    		Get CTXT
    		I32WrapI64
    		I64Load $0
    		JMP
    	End
    
    	// if g != m.curg
    	Get g
    	I64Load m_curg(R1)
    	I64Ne
    	If
    		CALLNORESUME runtime·badsystemstack(SB)
    		CALLNORESUME runtime·abort(SB)
    	End
    
    	// switch:
    
    	// save state in g->sched. Pretend to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. src/runtime/asm_riscv64.s

    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  6. src/runtime/asm_s390x.s

    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_arm64.s

    	CBZ	g, sigtrampnog // g == nil
    	MOVD	g_m(g), R6
    	CBZ	R6, sigtramp    // g.m == nil
    	MOVW	m_ncgo(R6), R7
    	CBZW	R7, sigtramp    // g.m.ncgo = 0
    	MOVD	m_curg(R6), R8
    	CBZ	R8, sigtramp    // g.m.curg == nil
    	MOVD	g_syscallsp(R8), R7
    	CBZ	R7,	sigtramp    // g.m.curg.syscallsp == 0
    	MOVD	m_cgoCallers(R6), R4 // R4 is the fifth arg in C calling convention.
    	CBZ	R4,	sigtramp    // g.m.cgoCallers == nil
    	MOVW	m_cgoCallersUse(R6), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  8. src/runtime/asm_mipsx.s

    	// save that information (m->curg->sched) so we can restore it.
    	// We can restore m->curg->sched.sp easily, because calling
    	// runtime.cgocallbackg leaves SP unchanged upon return.
    	// To save m->curg->sched.pc, we push it onto the curg stack and
    	// open a frame the same size as cgocallback's g0 frame.
    	// Once we switch to the curg stack, the pushed PC will appear
    	// to be the return PC of cgocallback, so that the traceback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 11:46:29 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  9. src/runtime/asm_loong64.s

    	MOVV	g_m(g), R4	// R4 = m
    
    	MOVV	m_gsignal(R4), R5	// R5 = gsignal
    	BEQ	g, R5, noswitch
    
    	MOVV	m_g0(R4), R5	// R5 = g0
    	BEQ	g, R5, noswitch
    
    	MOVV	m_curg(R4), R6
    	BEQ	g, R6, switch
    
    	// Bad: g is not gsignal, not g0, not curg. What is it?
    	// Hide call from linker nosplit analysis.
    	MOVV	$runtime·badsystemstack(SB), R7
    	JAL	(R7)
    	JAL	runtime·abort(SB)
    
    switch:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  10. src/runtime/sys_linux_mips64x.s

    	MOVV	m_vdsoPC(R17), R2
    	MOVV	m_vdsoSP(R17), R3
    	MOVV	R2, 8(R29)
    	MOVV	R3, 16(R29)
    
    	MOVV	$ret-8(FP), R2 // caller's SP
    	MOVV	R31, m_vdsoPC(R17)
    	MOVV	R2, m_vdsoSP(R17)
    
    	MOVV	m_curg(R17), R4
    	MOVV	g, R5
    	BNE	R4, R5, noswitch
    
    	MOVV	m_g0(R17), R4
    	MOVV	(g_sched+gobuf_sp)(R4), R1	// Set SP to g0 stack
    
    noswitch:
    	SUBV	$16, R1
    	AND	$~15, R1	// Align for C code
    	MOVV	R1, R29
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 20:57:24 UTC 2022
    - 12K bytes
    - Viewed (0)
Back to top