sel4_panicking/strategy/abort/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// Copyright 2023, Colias Group, LLC
//
// SPDX-License-Identifier: BSD-2-Clause
//

use sel4_panicking_env::abort_without_info;

#[cfg(panic = "unwind")]
use sel4_panicking_env::abort;

use crate::Payload;

pub(crate) fn panic_cleanup(_exception: *mut u8) -> Payload {
    unreachable!()
}

pub(crate) fn start_panic(_payload: Payload) -> i32 {
    abort_without_info()
}

#[cfg(panic = "unwind")]
#[lang = "eh_personality"]
fn eh_personality() -> ! {
    abort!("unexpected call to eh_personality")
}