cortex_a/registers/mpidr_el1.rs
1// SPDX-License-Identifier: Apache-2.0 OR MIT
2//
3// Copyright (c) 2018-2022 by the author(s)
4//
5// Author(s):
6// - Andre Richter <andre.o.richter@gmail.com>
7
8//! Multiprocessor Affinity Register - EL1
9//!
10//! In a multiprocessor system, provides an additional PE identification mechanism for scheduling
11//! purposes.
12
13use tock_registers::interfaces::Readable;
14
15pub struct Reg;
16
17impl Readable for Reg {
18 type T = u64;
19 type R = ();
20
21 sys_coproc_read_raw!(u64, "MPIDR_EL1", "x");
22}
23
24pub const MPIDR_EL1: Reg = Reg {};