summaryrefslogtreecommitdiff
path: root/src/runtime/defs_plan9_386.go
diff options
context:
space:
mode:
authorRichard Miller <miller.research@gmail.com>2016-01-27 18:43:36 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2016-03-07 16:25:17 +0000
commitd145456b168029188ffc654ce2e9f1bbc62f8b99 (patch)
tree94a89c5786f4ab251d8e1cea80246b465412d29a /src/runtime/defs_plan9_386.go
parentc97ddf9c108adf0ca9c1aa2043a417885db411c2 (diff)
downloadgo-git-d145456b168029188ffc654ce2e9f1bbc62f8b99.tar.gz
runtime: signal handling support for plan9_arm
Plan 9 trap/signal handling differs on ARM from other architectures because ARM has a link register. Also trap message syntax varies between different architectures (historical accident?). Revised 7 March to clarify a comment. Change-Id: Ib6485f82857a2f9a0d6b2c375cf0aaa230b83656 Reviewed-on: https://go-review.googlesource.com/18969 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/defs_plan9_386.go')
-rw-r--r--src/runtime/defs_plan9_386.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/defs_plan9_386.go b/src/runtime/defs_plan9_386.go
index 3574cb6654..54ace4871e 100644
--- a/src/runtime/defs_plan9_386.go
+++ b/src/runtime/defs_plan9_386.go
@@ -30,9 +30,13 @@ type sigctxt struct {
func (c *sigctxt) pc() uintptr { return uintptr(c.u.pc) }
func (c *sigctxt) sp() uintptr { return uintptr(c.u.sp) }
+func (c *sigctxt) lr() uintptr { return uintptr(0) }
func (c *sigctxt) setpc(x uintptr) { c.u.pc = uint32(x) }
func (c *sigctxt) setsp(x uintptr) { c.u.sp = uint32(x) }
+func (c *sigctxt) setlr(x uintptr) {}
+
+func (c *sigctxt) savelr(x uintptr) {}
func dumpregs(u *ureg) {
print("ax ", hex(u.ax), "\n")
@@ -49,3 +53,5 @@ func dumpregs(u *ureg) {
print("fs ", hex(u.fs), "\n")
print("gs ", hex(u.gs), "\n")
}
+
+func sigpanictramp() {}