File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -851,14 +851,16 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)
851
851
* Task size is 0x4000000000 for RV64 or 0x9fc00000 for RV32.
852
852
* Note that PGDIR_SIZE must evenly divide TASK_SIZE.
853
853
* Task size is:
854
- * - 0x9fc00000 (~2.5GB) for RV32.
855
- * - 0x4000000000 ( 256GB) for RV64 using SV39 mmu
856
- * - 0x800000000000 ( 128TB) for RV64 using SV48 mmu
854
+ * - 0x9fc00000 (~2.5GB) for RV32.
855
+ * - 0x4000000000 ( 256GB) for RV64 using SV39 mmu
856
+ * - 0x800000000000 ( 128TB) for RV64 using SV48 mmu
857
+ * - 0x100000000000000 ( 64PB) for RV64 using SV57 mmu
857
858
*
858
859
* Note that PGDIR_SIZE must evenly divide TASK_SIZE since "RISC-V
859
860
* Instruction Set Manual Volume II: Privileged Architecture" states that
860
861
* "load and store effective addresses, which are 64bits, must have bits
861
862
* 63–48 all equal to bit 47, or else a page-fault exception will occur."
863
+ * Similarly for SV57, bits 63–57 must be equal to bit 56.
862
864
*/
863
865
#ifdef CONFIG_64BIT
864
866
#define TASK_SIZE_64 (PGDIR_SIZE * PTRS_PER_PGD / 2)
You can’t perform that action at this time.
0 commit comments