diff options
Diffstat (limited to 'src/runtime/defs_windows_amd64.go')
| -rw-r--r-- | src/runtime/defs_windows_amd64.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_windows_amd64.go b/src/runtime/defs_windows_amd64.go index ac636a68ec..afa8a657b8 100644 --- a/src/runtime/defs_windows_amd64.go +++ b/src/runtime/defs_windows_amd64.go @@ -70,6 +70,11 @@ func (c *context) set_lr(x uintptr) {} func (c *context) set_ip(x uintptr) { c.rip = uint64(x) } func (c *context) set_sp(x uintptr) { c.rsp = uint64(x) } +func prepareContextForSigResume(c *context) { + c.r8 = c.rsp + c.r9 = c.rip +} + func dumpregs(r *context) { print("rax ", hex(r.rax), "\n") print("rbx ", hex(r.rbx), "\n") |
