Skip to content

Commit 1649810

Browse files
committed
powerpc: Janky segmented stack support
1 parent f0d6eee commit 1649810

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/libstd/sys/common/stack.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ pub unsafe fn record_sp_limit(limit: uint) {
231231
unsafe fn target_record_sp_limit(_: uint) {
232232
}
233233

234+
// powerpc - FIXME(POWERPC): missing...
235+
#[cfg(target_arch = "powerpc")]
236+
unsafe fn target_record_sp_limit(_: uint) {
237+
}
238+
239+
234240
// iOS segmented stack is disabled for now, see related notes
235241
#[cfg(all(target_arch = "arm", target_os = "ios"))] #[inline(always)]
236242
unsafe fn target_record_sp_limit(_: uint) {
@@ -326,6 +332,12 @@ pub unsafe fn get_sp_limit() -> uint {
326332
1024
327333
}
328334

335+
// powepc - FIXME(POWERPC): missing...
336+
#[cfg(target_arch = "powerpc")]
337+
unsafe fn target_get_sp_limit() -> uint {
338+
1024
339+
}
340+
329341
// iOS doesn't support segmented stacks yet. This function might
330342
// be called by runtime though so it is unsafe to mark it as
331343
// unreachable, let's return a fixed constant.

0 commit comments

Comments
 (0)