aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_windows_amd64.go
diff options
context:
space:
mode:
authorJordan Rhee <jordanrh@microsoft.com>2018-08-08 14:44:42 -0700
committerIan Lance Taylor <iant@golang.org>2018-09-18 22:18:23 +0000
commitd24ec86e4f64302e91d8062eabfcd21296bb9b04 (patch)
tree93618b9bd00376df7529db6c4fd8785a91dcc41f /src/runtime/defs_windows_amd64.go
parent37db664c6cd480b578d6114854bc20c2bc3cddcd (diff)
downloadgo-d24ec86e4f64302e91d8062eabfcd21296bb9b04.tar.gz
go-d24ec86e4f64302e91d8062eabfcd21296bb9b04.zip
runtime: support windows/arm
Updates #26148 Change-Id: I8f68b2c926c7b11dc86c9664ed7ff2d2f78b64b4 Reviewed-on: https://go-review.googlesource.com/128715 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/defs_windows_amd64.go')
-rw-r--r--src/runtime/defs_windows_amd64.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/defs_windows_amd64.go b/src/runtime/defs_windows_amd64.go
index 1e173e934d..37508c09be 100644
--- a/src/runtime/defs_windows_amd64.go
+++ b/src/runtime/defs_windows_amd64.go
@@ -119,6 +119,9 @@ type context struct {
func (c *context) ip() uintptr { return uintptr(c.rip) }
func (c *context) sp() uintptr { return uintptr(c.rsp) }
+// Amd64 does not have link register, so this returns 0.
+func (c *context) lr() uintptr { return 0 }
+
func (c *context) setip(x uintptr) { c.rip = uint64(x) }
func (c *context) setsp(x uintptr) { c.rsp = uint64(x) }