openbsd support

This commit is contained in:
Sébastien Marie 2015-01-29 08:19:28 +01:00
parent f1f9cb705d
commit fcb30a0b67
43 changed files with 1036 additions and 72 deletions

View file

@ -241,6 +241,11 @@ pub unsafe fn record_sp_limit(limit: uint) {
#[cfg(all(target_arch = "arm", target_os = "ios"))] #[inline(always)]
unsafe fn target_record_sp_limit(_: uint) {
}
#[cfg(target_os = "openbsd")] #[inline(always)]
unsafe fn target_record_sp_limit(_: uint) {
// segmented stack is disabled
}
}
/// The counterpart of the function above, this function will fetch the current
@ -345,4 +350,10 @@ pub unsafe fn get_sp_limit() -> uint {
unsafe fn target_get_sp_limit() -> uint {
1024
}
#[cfg(target_os = "openbsd")] #[inline(always)]
unsafe fn target_get_sp_limit() -> uint {
// segmented stack is disabled
1024
}
}