Skip to main content

islet_rmm/
panic.rs

1#[alloc_error_handler]
2fn alloc_error_handler(_layout: core::alloc::Layout) -> ! {
3    panic!("OOM! memory allocation of {} bytes failed", _layout.size())
4}
5
6#[panic_handler]
7pub fn panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! {
8    error!("RMM: {}", _info);
9    halt()
10}
11
12pub fn halt() -> ! {
13    loop {}
14}