Skip to content

Commit 92235d3

Browse files
XiaoWang1772palmer-dabbelt
authored andcommitted
riscv/mm: Fix the comment for swap pte format
Swap type takes bits 7-11 and swap offset should start from bit 12. Signed-off-by: Xiao Wang <xiao.w.wang@intel.com> Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20230921141652.2657054-1-xiao.w.wang@intel.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 8f501be commit 92235d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/include/asm/pgtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ extern pmd_t pmdp_collapse_flush(struct vm_area_struct *vma,
811811
* bit 5: _PAGE_PROT_NONE (zero)
812812
* bit 6: exclusive marker
813813
* bits 7 to 11: swap type
814-
* bits 11 to XLEN-1: swap offset
814+
* bits 12 to XLEN-1: swap offset
815815
*/
816816
#define __SWP_TYPE_SHIFT 7
817817
#define __SWP_TYPE_BITS 5

0 commit comments

Comments
 (0)