pub use crate::wafer::interrupt::*;
use crate::PLIC;
use base_address::{Dynamic, Static};
pub use plic::Plic;
impl<const B: usize> PLIC<Static<B>> {
#[inline]
pub const unsafe fn steal_static() -> PLIC<Static<B>> {
PLIC { base: Static::<B> }
}
}
impl PLIC<Dynamic> {
#[inline]
pub unsafe fn steal_dynamic(base: *const ()) -> PLIC<Dynamic> {
PLIC {
base: Dynamic::new(base as usize),
}
}
}