about summary refs log tree commit diff
path: root/src/libstd/sys/common/stack.rs
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-01-09 20:26:10 -0800
committerRicho Healey <richo@psych0tik.net>2015-01-11 21:14:31 -0800
commit164981042d6afd38c6635ab10ef8ed3c0daffe8b (patch)
tree21944d9bab49b4683cbc3f1b88db1ba7cd40e0f6 /src/libstd/sys/common/stack.rs
parentf0d6eee499e898fc0336c72069ab7bac47125c4b (diff)
downloadrust-164981042d6afd38c6635ab10ef8ed3c0daffe8b.tar.gz
rust-164981042d6afd38c6635ab10ef8ed3c0daffe8b.zip
powerpc: Janky segmented stack support
Diffstat (limited to 'src/libstd/sys/common/stack.rs')
-rw-r--r--src/libstd/sys/common/stack.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstd/sys/common/stack.rs b/src/libstd/sys/common/stack.rs
index ce5ab67ae61..88bb9395cf1 100644
--- a/src/libstd/sys/common/stack.rs
+++ b/src/libstd/sys/common/stack.rs
@@ -231,6 +231,12 @@ pub unsafe fn record_sp_limit(limit: uint) {
     unsafe fn target_record_sp_limit(_: uint) {
     }
 
+    // powerpc - FIXME(POWERPC): missing...
+    #[cfg(target_arch = "powerpc")]
+    unsafe fn target_record_sp_limit(_: uint) {
+    }
+
+
     // iOS segmented stack is disabled for now, see related notes
     #[cfg(all(target_arch = "arm", target_os = "ios"))] #[inline(always)]
     unsafe fn target_record_sp_limit(_: uint) {
@@ -326,6 +332,12 @@ pub unsafe fn get_sp_limit() -> uint {
         1024
     }
 
+    // powepc - FIXME(POWERPC): missing...
+    #[cfg(target_arch = "powerpc")]
+    unsafe fn target_get_sp_limit() -> uint {
+        1024
+    }
+
     // iOS doesn't support segmented stacks yet. This function might
     // be called by runtime though so it is unsafe to mark it as
     // unreachable, let's return a fixed constant.