qemu_rv32_virt_chip/plic.rs
// Licensed under the Apache License, Version 2.0 or the MIT License.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright Tock Contributors 2022.
//! Instantiation of the sifive Platform Level Interrupt Controller
use kernel::utilities::StaticRef;
use sifive::plic::{Plic, PlicRegisters};
pub const PLIC_BASE: StaticRef<PlicRegisters> =
unsafe { StaticRef::new(0x0c00_0000 as *const PlicRegisters) };
pub static mut PLIC: Plic = Plic::new(PLIC_BASE);