mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-17 21:25:52 +00:00
27 lines
687 B
Rust
27 lines
687 B
Rust
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||
|
//
|
||
|
// Copyright (c) 2020 Andre Richter <andre.o.richter@gmail.com>
|
||
|
|
||
|
//! Synchronous and asynchronous exception handling.
|
||
|
|
||
|
#[cfg(target_arch = "aarch64")]
|
||
|
#[path = "_arch/aarch64/exception.rs"]
|
||
|
mod arch_exception;
|
||
|
pub use arch_exception::*;
|
||
|
|
||
|
pub mod asynchronous;
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
// Public Definitions
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
||
|
/// Kernel privilege levels.
|
||
|
#[allow(missing_docs)]
|
||
|
#[derive(PartialEq)]
|
||
|
pub enum PrivilegeLevel {
|
||
|
User,
|
||
|
Kernel,
|
||
|
Hypervisor,
|
||
|
Unknown,
|
||
|
}
|