projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f501be
)
riscv/mm: Fix the comment for swap pte format
author
Xiao Wang
<xiao.w.wang@intel.com>
Thu, 21 Sep 2023 14:16:52 +0000
(22:16 +0800)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Wed, 1 Nov 2023 02:15:53 +0000
(19:15 -0700)
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>
arch/riscv/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/pgtable.h
b/arch/riscv/include/asm/pgtable.h
index e05e5c8f652644c6e96a97b763132173a29d2c38..c8e8867c42f6a9127b5a67fb837dd221f214ed88 100644
(file)
--- a/
arch/riscv/include/asm/pgtable.h
+++ b/
arch/riscv/include/asm/pgtable.h
@@
-811,7
+811,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 1
1
to XLEN-1: swap offset
+ * bits 1
2
to XLEN-1: swap offset
*/
#define __SWP_TYPE_SHIFT 7
#define __SWP_TYPE_BITS 5