Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for cgoBuf (0.1 sec)

  1. src/runtime/sys_ppc64x.go

    // license that can be found in the LICENSE file.
    
    //go:build ppc64 || ppc64le
    
    package runtime
    
    import "unsafe"
    
    // adjust Gobuf as if it executed a call to fn with context ctxt
    // and then did an immediate Gosave.
    func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
    	if buf.lr != 0 {
    		throw("invalid use of gostartcall")
    	}
    	buf.lr = buf.pc
    	buf.pc = uintptr(fn)
    	buf.ctxt = ctxt
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 532 bytes
    - Viewed (0)
  2. src/runtime/sys_wasm.go

    func wasmDiv()
    
    func wasmTruncS()
    func wasmTruncU()
    
    //go:wasmimport gojs runtime.wasmExit
    func wasmExit(code int32)
    
    // adjust Gobuf as it if executed a call to fn with context ctxt
    // and then stopped before the first instruction in fn.
    func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
    	sp := buf.sp
    	sp -= goarch.PtrSize
    	*(*uintptr)(unsafe.Pointer(sp)) = buf.pc
    	buf.sp = sp
    	buf.pc = uintptr(fn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 758 bytes
    - Viewed (0)
  3. test/nosplit.go

    				for _, rej := range strings.Fields(m[4]) {
    					if rej == goarch {
    						reject = true
    					}
    				}
    			}
    		}
    		if lines == "" && !reject {
    			continue
    		}
    
    		var gobuf bytes.Buffer
    		fmt.Fprintf(&gobuf, "package main\n")
    
    		var buf bytes.Buffer
    		ptrSize := 4
    		switch goarch {
    		case "mips", "mipsle":
    			fmt.Fprintf(&buf, "#define REGISTER (R0)\n")
    		case "mips64", "mips64le":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. src/runtime/runtime2.go

    // nothing ever hold an muintptr across a safe point.
    
    // A guintptr holds a goroutine pointer, but typed as a uintptr
    // to bypass write barriers. It is used in the Gobuf goroutine state
    // and in scheduling lists that are manipulated without a P.
    //
    // The Gobuf.g goroutine pointer is almost always updated by assembly code.
    // In one of the few places it is updated by Go code - func save - it must be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  5. src/go/printer/testdata/declarations.input

    		Fields int
    	}
    	PtrType struct {
    		Elem int
    	}
    	SliceType struct {
    		Elem int
    	}
    	ArrayType struct {
    		Elem, Len int
    	}
    
    	Stktop struct {
    		Stackguard, Stackbase, Gobuf int
    	}
    	Gobuf struct {
    		Sp, Pc, G int
    	}
    	G struct {
    		Stackbase, Sched, Status, Alllink int
    	}
    }
    
    
    // no blank lines in empty structs and interfaces, but leave 1- or 2-line layout alone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  6. src/go/printer/testdata/declarations.golden

    		Fields int
    	}
    	PtrType	struct {
    		Elem int
    	}
    	SliceType	struct {
    		Elem int
    	}
    	ArrayType	struct {
    		Elem, Len int
    	}
    
    	Stktop	struct {
    		Stackguard, Stackbase, Gobuf int
    	}
    	Gobuf	struct {
    		Sp, Pc, G int
    	}
    	G	struct {
    		Stackbase, Sched, Status, Alllink int
    	}
    }
    
    // no blank lines in empty structs and interfaces, but leave 1- or 2-line layout alone
    type _ struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  7. src/runtime/stack.go

    func nilfunc() {
    	*(*uint8)(nil) = 0
    }
    
    // adjust Gobuf as if it executed a call to fn
    // and then stopped before the first instruction in fn.
    func gostartcallfn(gobuf *gobuf, fv *funcval) {
    	var fn unsafe.Pointer
    	if fv != nil {
    		fn = unsafe.Pointer(fv.fn)
    	} else {
    		fn = unsafe.Pointer(abi.FuncPCABIInternal(nilfunc))
    	}
    	gostartcall(gobuf, fn, unsafe.Pointer(fv))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. src/runtime/asm_mips64x.s

    TEXT runtime·asminit(SB),NOSPLIT|NOFRAME,$0-0
    	RET
    
    TEXT runtime·mstart(SB),NOSPLIT|TOPFRAME,$0
    	JAL	runtime·mstart0(SB)
    	RET // not reached
    
    /*
     *  go-routine
     */
    
    // void gogo(Gobuf*)
    // restore state from Gobuf; longjmp
    TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8
    	MOVV	buf+0(FP), R3
    	MOVV	gobuf_g(R3), R4
    	MOVV	0(R4), R0	// make sure g != nil
    	JMP	gogo<>(SB)
    
    TEXT gogo<>(SB), NOSPLIT|NOFRAME, $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 19:45:59 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  9. src/runtime/asm_riscv64.s

    	JMP	runtime·memhash64Fallback<ABIInternal>(SB)
    
    // func return0()
    TEXT runtime·return0(SB), NOSPLIT, $0
    	MOV	$0, A0
    	RET
    
    // restore state from Gobuf; longjmp
    
    // func gogo(buf *gobuf)
    TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8
    	MOV	buf+0(FP), T0
    	MOV	gobuf_g(T0), T1
    	MOV	0(T1), ZERO // make sure g != nil
    	JMP	gogo<>(SB)
    
    TEXT gogo<>(SB), NOSPLIT|NOFRAME, $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 27K bytes
    - Viewed (0)
  10. src/runtime/asm_s390x.s

    TEXT runtime·asminit(SB),NOSPLIT|NOFRAME,$0-0
    	RET
    
    TEXT runtime·mstart(SB),NOSPLIT|TOPFRAME,$0
    	CALL	runtime·mstart0(SB)
    	RET // not reached
    
    /*
     *  go-routine
     */
    
    // void gogo(Gobuf*)
    // restore state from Gobuf; longjmp
    TEXT runtime·gogo(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD	buf+0(FP), R5
    	MOVD	gobuf_g(R5), R6
    	MOVD	0(R6), R7	// make sure g != nil
    	BR	gogo<>(SB)
    
    TEXT gogo<>(SB), NOSPLIT|NOFRAME, $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 09:18:28 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top