Skip to contentSkip to conversation

riscv/mm: Fix the comment for swap pte format

PATCH In review Xiao Wang 2 participants 2 messages Sep 21, 2023 RISC-V

lore
Share & tools
lore

Xiao Wang

author
#0 lore raw

PATCH 1/1 riscv/mm: Fix the comment for swap pte format

Swap type takes bits 7-11 and swap offset should start from bit 12.

---
 arch/riscv/include/asm/pgtable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/pgtable.h +1 -1
index e05b5dc1f0cb..e94a2998e81e 100644
@@ -812,7 +812,7 @@ extern pmd_t pmdp_collapse_flush(struct vm_area_struct *vma,
  *	bit            5:	_PAGE_PROT_NONE (zero)
  *	bit            6:	exclusive marker
  *	bits      7 to 11:	swap type
- *	bits 11 to XLEN-1:	swap offset
+ *	bits 12 to XLEN-1:	swap offset
  */
 #define __SWP_TYPE_SHIFT	7
 #define __SWP_TYPE_BITS		5
Signature · 7 lines
2.25.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Xiao Wang

Swap type takes bits 7-11 and swap offset should start from bit 12.

---
  arch/riscv/include/asm/pgtable.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/pgtable.h +0 -0
index e05b5dc1f0cb..e94a2998e81e 100644

arch/riscv/include/asm/pgtable.h extern pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, · line 818

Quoted 8 lines
arch/riscv/include/asm/pgtable.h +1 -1
@@ -812,7 +812,7 @@ extern pmd_t pmdp_collapse_flush(struct vm_area_struct *vma,
   *	bit            5:	_PAGE_PROT_NONE (zero)
   *	bit            6:	exclusive marker
   *	bits      7 to 11:	swap type
- *	bits 11 to XLEN-1:	swap offset
+ *	bits 12 to XLEN-1:	swap offset
   */
  #define __SWP_TYPE_SHIFT	7
  #define __SWP_TYPE_BITS		5
Signature · 9 lines
Cheers,

David / dhildenb


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