aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_windows_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/defs_windows_arm64.go')
-rw-r--r--src/runtime/defs_windows_arm64.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/defs_windows_arm64.go b/src/runtime/defs_windows_arm64.go
index 9ccce46f09..6c71133b43 100644
--- a/src/runtime/defs_windows_arm64.go
+++ b/src/runtime/defs_windows_arm64.go
@@ -41,6 +41,11 @@ func (c *context) set_ip(x uintptr) { c.pc = uint64(x) }
func (c *context) set_sp(x uintptr) { c.xsp = uint64(x) }
func (c *context) set_lr(x uintptr) { c.x[30] = uint64(x) }
+func prepareContextForSigResume(c *context) {
+ c.x[0] = c.xsp
+ c.x[1] = c.pc
+}
+
func dumpregs(r *context) {
print("r0 ", hex(r.x[0]), "\n")
print("r1 ", hex(r.x[1]), "\n")