summaryrefslogtreecommitdiff
path: root/devel/libunwind/files/patch-include_libunwind-aarch64.h
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2018-06-29 07:48:42 +0000
committerMark Linimon <linimon@FreeBSD.org>2018-06-29 07:48:42 +0000
commit0d9d8a8521042264f7b520204a7e123a7d22aabc (patch)
treefb21ece10358bfeb0465d94601ca3ff650cb5e12 /devel/libunwind/files/patch-include_libunwind-aarch64.h
parentFix build on aarch64. Tested for no-harm on amd64. (diff)
Port to aarch64. Tested for no-harm on amd64.
While here, pet portlint. PR: 229057 Submitted by: greg at unrelenting.technology Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'devel/libunwind/files/patch-include_libunwind-aarch64.h')
-rw-r--r--devel/libunwind/files/patch-include_libunwind-aarch64.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/libunwind/files/patch-include_libunwind-aarch64.h b/devel/libunwind/files/patch-include_libunwind-aarch64.h
new file mode 100644
index 000000000000..d155e228f92f
--- /dev/null
+++ b/devel/libunwind/files/patch-include_libunwind-aarch64.h
@@ -0,0 +1,11 @@
+--- include/libunwind-aarch64.h.orig 2018-06-15 23:58:09 UTC
++++ include/libunwind-aarch64.h
+@@ -177,7 +177,7 @@ typedef ucontext_t unw_tdep_context_t;
+
+ #define unw_tdep_getcontext(uc) (({ \
+ unw_tdep_context_t *unw_ctx = (uc); \
+- register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.regs; \
++ register uint64_t *unw_base asm ("x0") = (uint64_t*) unw_ctx->uc_mcontext.mc_gpregs.gp_x; \
+ __asm__ __volatile__ ( \
+ "stp x0, x1, [%[base], #0]\n" \
+ "stp x2, x3, [%[base], #16]\n" \