openbsd support
This commit is contained in:
parent
f1f9cb705d
commit
fcb30a0b67
43 changed files with 1036 additions and 72 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue