From 29d61f4bdbc2b83c1751b6ab8c9b7b98d37f90d4 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 15 Apr 2022 00:47:27 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=93=A6=20Rename=20access=20fl?= =?UTF-8?q?ag=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machine/src/arch/aarch64/memory/mmu.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/machine/src/arch/aarch64/memory/mmu.rs b/machine/src/arch/aarch64/memory/mmu.rs index 19a0b80..96f5d5c 100644 --- a/machine/src/arch/aarch64/memory/mmu.rs +++ b/machine/src/arch/aarch64/memory/mmu.rs @@ -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),