Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runtimeWrite (0.35 sec)

  1. src/syscall/time_fake.go

    // the runtime's write function, since that adds the framing that
    // reports the emulated time.
    
    //go:linkname runtimeWrite runtime.write
    func runtimeWrite(fd uintptr, p unsafe.Pointer, n int32) int32
    
    func faketimeWrite(fd int, p []byte) int {
    	var pp *byte
    	if len(p) > 0 {
    		pp = &p[0]
    	}
    	return int(runtimeWrite(uintptr(fd), unsafe.Pointer(pp), int32(len(p))))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 677 bytes
    - Viewed (0)
  2. src/runtime/asm_386.s

    	POPFL	// restore EFLAGS
    	TESTL	$(1<<21), AX
    	JNE 	has_cpuid
    
    bad_proc: // show that the program requires MMX.
    	MOVL	$2, 0(SP)
    	MOVL	$bad_proc_msg<>(SB), 4(SP)
    	MOVL	$0x3d, 8(SP)
    	CALL	runtime·write(SB)
    	MOVL	$1, 0(SP)
    	CALL	runtime·exit(SB)
    	CALL	runtime·abort(SB)
    
    has_cpuid:
    	MOVL	$0, AX
    	CPUID
    	MOVL	AX, SI
    	CMPL	AX, $0
    	JE	nocpuinfo
    
    	CMPL	BX, $0x756E6547  // "Genu"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 15:45:13 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  3. src/runtime/asm_amd64.s

    	RET
    
    bad_cpu: // show that the program requires a certain microarchitecture level.
    	MOVQ	$2, 0(SP)
    	MOVQ	$bad_cpu_msg<>(SB), AX
    	MOVQ	AX, 8(SP)
    	MOVQ	$84, 16(SP)
    	CALL	runtime·write(SB)
    	MOVQ	$1, 0(SP)
    	CALL	runtime·exit(SB)
    	CALL	runtime·abort(SB)
    	RET
    
    	// Prevent dead-code elimination of debugCallV2 and debugPinnerV1, which are
    	// intended to be called by debuggers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
Back to top