Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for set_sp (0.18 sec)

  1. src/runtime/export_windows_test.go

    }
    
    type ContextStub struct {
    	context
    }
    
    func (c ContextStub) GetPC() uintptr {
    	return c.ip()
    }
    
    func NewContextStub() *ContextStub {
    	var ctx context
    	ctx.set_ip(getcallerpc())
    	ctx.set_sp(getcallersp())
    	ctx.set_fp(getcallerfp())
    	return &ContextStub{ctx}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:25:00 UTC 2024
    - 759 bytes
    - Viewed (0)
  2. src/runtime/signal_loong64.go

    	// anyway.
    	sp := c.sp() - goarch.PtrSize
    	c.set_sp(sp)
    	*(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()
    
    	pc := gp.sigpc
    
    	if shouldPushSigpanic(gp, pc, uintptr(c.link())) {
    		// Make it look the like faulting PC called sigpanic.
    		c.set_link(uint64(pc))
    	}
    
    	// In case we are panicking from external C code
    	c.set_r22(uint64(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(uint64(abi.FuncPCABIInternal(sigpanic)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 06:51:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. src/runtime/signal_linux_s390x.go

    func (c *sigctxt) sigaddr() uint64 { return c.info.si_addr }
    
    func (c *sigctxt) set_r0(x uint64)      { c.regs().gregs[0] = x }
    func (c *sigctxt) set_r13(x uint64)     { c.regs().gregs[13] = x }
    func (c *sigctxt) set_link(x uint64)    { c.regs().gregs[14] = x }
    func (c *sigctxt) set_sp(x uint64)      { c.regs().gregs[15] = x }
    func (c *sigctxt) set_pc(x uint64)      { c.regs().psw_addr = x }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 17 20:42:23 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  4. src/runtime/signal_riscv64.go

    	// anyway.
    	sp := c.sp() - goarch.PtrSize
    	c.set_sp(sp)
    	*(*uint64)(unsafe.Pointer(uintptr(sp))) = c.ra()
    
    	pc := gp.sigpc
    
    	if shouldPushSigpanic(gp, pc, uintptr(c.ra())) {
    		// Make it look the like faulting PC called sigpanic.
    		c.set_ra(uint64(pc))
    	}
    
    	// In case we are panicking from external C code
    	c.set_gp(uint64(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(uint64(abi.FuncPCABIInternal(sigpanic)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. src/runtime/signal_arm.go

    	// anyway.
    	sp := c.sp() - 4
    	c.set_sp(sp)
    	*(*uint32)(unsafe.Pointer(uintptr(sp))) = c.lr()
    
    	pc := gp.sigpc
    
    	if shouldPushSigpanic(gp, pc, uintptr(c.lr())) {
    		// Make it look the like faulting PC called sigpanic.
    		c.set_lr(uint32(pc))
    	}
    
    	// In case we are panicking from external C code
    	c.set_r10(uint32(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(uint32(abi.FuncPCABIInternal(sigpanic)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  6. src/runtime/signal_arm64.go

    	pc := gp.sigpc
    
    	if shouldPushSigpanic(gp, pc, uintptr(c.lr())) {
    		// Make it look the like faulting PC called sigpanic.
    		c.set_lr(uint64(pc))
    	}
    
    	// In case we are panicking from external C code
    	c.set_r28(uint64(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(uint64(abi.FuncPCABIInternal(sigpanic)))
    }
    
    func (c *sigctxt) pushCall(targetPC, resumePC uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 18:16:00 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. src/runtime/defs_windows_386.go

    // 386 does not have link register, so this returns 0.
    func (c *context) lr() uintptr      { return 0 }
    func (c *context) set_lr(x uintptr) {}
    
    func (c *context) set_ip(x uintptr) { c.eip = uint32(x) }
    func (c *context) set_sp(x uintptr) { c.esp = uint32(x) }
    
    // 386 does not have frame pointer register.
    func (c *context) set_fp(x uintptr) {}
    
    func prepareContextForSigResume(c *context) {
    	c.edx = c.esp
    	c.ecx = c.eip
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/runtime/signal_mipsx.go

    	// anyway.
    	sp := c.sp() - sys.MinFrameSize
    	c.set_sp(sp)
    	*(*uint32)(unsafe.Pointer(uintptr(sp))) = c.link()
    
    	pc := gp.sigpc
    
    	if shouldPushSigpanic(gp, pc, uintptr(c.link())) {
    		// Make it look the like faulting PC called sigpanic.
    		c.set_link(uint32(pc))
    	}
    
    	// In case we are panicking from external C code
    	c.set_r30(uint32(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(uint32(abi.FuncPCABIInternal(sigpanic)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. src/runtime/signal_mips64x.go

    	c.set_r30(uint64(uintptr(unsafe.Pointer(gp))))
    	c.set_pc(sigpanicPC)
    }
    
    func (c *sigctxt) pushCall(targetPC, resumePC uintptr) {
    	// Push the LR to stack, as we'll clobber it in order to
    	// push the call. The function being pushed is responsible
    	// for restoring the LR and setting the SP back.
    	// This extra slot is known to gentraceback.
    	sp := c.sp() - 8
    	c.set_sp(sp)
    	*(*uint64)(unsafe.Pointer(uintptr(sp))) = c.link()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. src/runtime/export_debug_arm64_test.go

    	h.err = plainError(reason)
    	ctxt.set_pc(ctxt.pc() + 4)
    }
    
    // case 16
    func (h *debugCallHandler) restoreSigContext(ctxt *sigctxt) {
    	// Restore all registers except for pc and sp
    	pc, sp := ctxt.pc(), ctxt.sp()
    	*ctxt.regs() = h.sigCtxt.savedRegs
    	ctxt.set_pc(pc + 4)
    	ctxt.set_sp(sp)
    }
    
    // storeRegArgs sets up argument registers in the signal
    // context state from an abi.RegArgs.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 23 05:38:56 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top