e310x/
plic.rs

1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright Tock Contributors 2022.
4
5//! Instantiation of the sifive Platform Level Interrupt Controller
6
7use kernel::utilities::StaticRef;
8use sifive::plic::{Plic, PlicRegisters};
9
10pub const PLIC_BASE: StaticRef<PlicRegisters> =
11    unsafe { StaticRef::new(0x0c00_0000 as *const PlicRegisters) };
12
13pub static mut PLIC: Plic = Plic::new(PLIC_BASE);