aarch32_cpu/register/tlbiall.rs
1//! Code for managing TLBIALL (*TLB Invalidate All Register*)
2
3use crate::register::SysReg;
4
5/// TLBIALL (*TLB Invalidate All Register*)
6pub struct TlbIAll;
7
8impl SysReg for TlbIAll {
9 const CP: u32 = 15;
10 const CRN: u32 = 8;
11 const OP1: u32 = 0;
12 const CRM: u32 = 7;
13 const OP2: u32 = 0;
14}
15
16impl crate::register::SysRegWrite for TlbIAll {}
17
18impl TlbIAll {
19 #[inline]
20 /// Writes 0 to TLBIALL (*TLB Invalidate All Register*) to trigger operation
21 pub fn write() {
22 unsafe { <Self as crate::register::SysRegWrite>::write_raw(0) }
23 }
24}