Skip to content

Commit

Permalink
powerpc: Janky segmented stack support
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jan 12, 2015
1 parent f0d6eee commit 1649810
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/libstd/sys/common/stack.rs
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 1649810

Please sign in to comment.