about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-12-01 18:32:48 -0800
committerBrian Anderson <banderson@mozilla.com>2011-12-01 19:44:13 -0800
commit8bf3d85b9d501881ed737437204564b2c7a90d5e (patch)
tree45a30f9bdb643d2dc63826bbf3f7c223e2155bfd /src/rt
parentdfb2c15bbaff69b47240e81f6331fb11cbc24e48 (diff)
downloadrust-8bf3d85b9d501881ed737437204564b2c7a90d5e.tar.gz
rust-8bf3d85b9d501881ed737437204564b2c7a90d5e.zip
rt: Implement record_sp for 64-bit mac
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/arch/x86_64/record_sp.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rt/arch/x86_64/record_sp.S b/src/rt/arch/x86_64/record_sp.S
index 3df6ee1c5da..e8284c5fac9 100644
--- a/src/rt/arch/x86_64/record_sp.S
+++ b/src/rt/arch/x86_64/record_sp.S
@@ -13,6 +13,13 @@ RECORD_SP:
 	movq %rdi, %fs:112
 	ret
 #else
+#if defined(__APPLE__)
 RECORD_SP:
+	movq $0x60+90*8, %rsi
+	movq %rdi, %gs:(%rsi)
 	ret
-#endif
\ No newline at end of file
+#else
+RECORD_SP:
+	ret
+#endif
+#endif