Skip to content

Commit fdf3a7a

Browse files
AlexGhitipalmer-dabbelt
authored andcommitted
riscv: Fix comment regarding kernel mapping overlapping with IS_ERR_VALUE
The current comment states that we check if the 64-bit kernel mapping overlaps with the last 4K of the address space that is reserved to error values in create_kernel_page_table, which is not the case since it is done in setup_vm. But anyway, remove the reference to any function and simply note that in 64-bit kernel, the check should be done as soon as the kernel mapping base address is known. Fixes: db6b84a ("riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE") Signed-off-by: Alexandre Ghiti <[email protected]> Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 030d6db commit fdf3a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static void __init setup_bootmem(void)
197197
* if end of dram is equal to maximum addressable memory. For 64-bit
198198
* kernel, this problem can't happen here as the end of the virtual
199199
* address space is occupied by the kernel mapping then this check must
200-
* be done in create_kernel_page_table.
200+
* be done as soon as the kernel mapping base address is determined.
201201
*/
202202
max_mapped_addr = __pa(~(ulong)0);
203203
if (max_mapped_addr == (phys_ram_end - 1))

0 commit comments

Comments
 (0)