summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2021-03-05 20:47:19 +0000
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-22 23:32:07 +0900
commit816a1d97fdcb46cec51f6fa25d191630698106d1 (patch)
tree9cf4f603ea2916d5fc8a5ce17d6bd77aafa34f54 /coroutine
parent35d30c6ac5a882e2d3b34a9a838f39c2f58531df (diff)
coroutine mac m1 update.
using proper link register and frame pointer which equal x30/x29.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4243
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/arm64/Context.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/coroutine/arm64/Context.S b/coroutine/arm64/Context.S
index e2bd5b3090..4d371c3dda 100644
--- a/coroutine/arm64/Context.S
+++ b/coroutine/arm64/Context.S
@@ -8,6 +8,11 @@
#define TOKEN_PASTE(x,y) x##y
#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
+#if defined(__APPLE__)
+#define x29 fp
+#define x30 lr
+#endif
+
.text
.align 2