Skip to contentSkip to conversation

ARM: Fix typo and misinformation in ARM page table documentation

PATCH New Ariel Gorovoy 1 participant 1 message Sep 22, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Fix typo and misinformation in ARM page table documentation

The documentation in the file is comprehensive and explains that there is an offset of 2048 bytes betwen the linux PTE and the hardware PTE.
However, the comment I changed remarked that there is actually a 1024 byte offset, which is incorrect as I understand it.

Also fixed a typo ("transation"->"translation").

Fixes 17f5721 ("ARM: 7075/1: LPAE: Factor out 2-level page table definitions into sep…")
---
 arch/arm/include/asm/pgtable-2level.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/pgtable-2level.h +2 -2
index ce543cd9380c..a1d19da4ff6a 100644
@@ -63,7 +63,7 @@
  *
  * However, when the "young" bit is cleared, we deny access to the page
  * by clearing the hardware PTE.  Currently Linux does not flush the TLB
- * for us in this case, which means the TLB will retain the transation
+ * for us in this case, which means the TLB will retain the translation
  * until either the TLB entry is evicted under pressure, or a context
  * switch which changes the user space mapping occurs.
  */
@@ -114,7 +114,7 @@
  * bits.
  *
  * The PTE table pointer refers to the hardware entries; the "Linux"
- * entries are stored 1024 bytes below.
+ * entries are stored 2048 bytes below.
  */
 #define L_PTE_VALID		(_AT(pteval_t, 1) << 0)		/* Valid */
 #define L_PTE_PRESENT		(_AT(pteval_t, 1) << 0)
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel