refactor: 📦 Rename access flag values

This commit is contained in:
Berkus Decker 2022-04-15 00:47:27 +03:00
parent bb40980419
commit 29d61f4bdb
1 changed files with 4 additions and 4 deletions

View File

@ -249,8 +249,8 @@ register_bitfields! {
/// Access flag
AF OFFSET(10) NUMBITS(1) [
False = 0,
True = 1
NotAccessed = 0,
Accessed = 1
],
/// Shareability field
@ -533,7 +533,7 @@ impl PageTableEntry {
Ok(PageTableEntry::Lvl2BlockDescriptor(
STAGE1_DESCRIPTOR::VALID::True
+ STAGE1_DESCRIPTOR::AF::True
+ STAGE1_DESCRIPTOR::AF::Accessed
+ into_mmu_attributes(attribute_fields)
+ STAGE1_DESCRIPTOR::TYPE::Block
+ STAGE1_DESCRIPTOR::LVL2_OUTPUT_ADDR_4KiB.val(shifted as u64),
@ -558,7 +558,7 @@ impl PageTableEntry {
Ok(PageTableEntry::PageDescriptor(
STAGE1_DESCRIPTOR::VALID::True
+ STAGE1_DESCRIPTOR::AF::True
+ STAGE1_DESCRIPTOR::AF::Accessed
+ into_mmu_attributes(attribute_fields)
+ STAGE1_DESCRIPTOR::TYPE::Table
+ STAGE1_DESCRIPTOR::NEXT_LVL_TABLE_ADDR_4KiB.val(shifted as u64),