- Notifications
You must be signed in to change notification settings - Fork 827
/
Copy pathpanic_wait.rs
17 lines (13 loc) · 505 Bytes
/
panic_wait.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.
usecrate::cpu;
use core::panic::PanicInfo;
//--------------------------------------------------------------------------------------------------
// Private Code
//--------------------------------------------------------------------------------------------------
#[panic_handler]
fnpanic(_info:&PanicInfo) -> ! {
cpu::wait_forever()
}