This commit is contained in:
nora 2023-06-17 23:33:01 +02:00
parent 7a8a82b476
commit 591da9ff7d
8 changed files with 213 additions and 169 deletions

View file

@ -3,7 +3,8 @@
extern crate alloc;
use core::{ffi, sync::atomic::AtomicPtr};
use core::ffi;
use core::sync::atomic::AtomicPtr;
// Get the macros into our local prelude.
#[macro_use]
@ -36,8 +37,8 @@ pub unsafe extern "C" fn _UnwindRaiseException(
stdext::abort();
}
// This is normally provided by the language runtime through the unwind info block.
// We don't want to access that usually because Rust messes with it :(.
// This is normally provided by the language runtime through the unwind info
// block. We don't want to access that usually because Rust messes with it :(.
static PERSONALITY_ROUTINE: AtomicPtr<()> = AtomicPtr::new(core::ptr::null_mut());
pub unsafe fn set_personality_routine(routine: uw::PersonalityRoutine) {