Skip to content

Commit 5632069

Browse files
yf13lsf37
authored andcommitted
riscv/vspace.c: revise comments
This revises comments for `map_kernel_window()` to be in line with the code. Signed-off-by: Yanfeng Liu <[email protected]>
1 parent b67ff0b commit 5632069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arch/riscv/kernel/vspace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ BOOT_CODE VISIBLE void map_kernel_window(void)
123123
pptr += RISCV_GET_LVL_PGSIZE(0);
124124
paddr += RISCV_GET_LVL_PGSIZE(0);
125125
}
126-
/* now we should be mapping the 1GiB kernel base */
126+
/* now map KERNEL_ELF_BASE to KERNEL_ELF_PADDR_BASE */
127127
assert(pptr == PPTR_TOP);
128128
pptr = ROUND_DOWN(KERNEL_ELF_BASE, RISCV_GET_LVL_PGSIZE_BITS(0));
129129
paddr = ROUND_DOWN(KERNEL_ELF_PADDR_BASE, RISCV_GET_LVL_PGSIZE_BITS(0));
@@ -157,7 +157,7 @@ BOOT_CODE VISIBLE void map_kernel_window(void)
157157
pte_next(kpptr_to_paddr(kernel_image_level2_dev_pt), false);
158158
#endif
159159

160-
/* There should be 1GiB free where we put device mapping */
160+
/* There should be free space where we put device mapping */
161161
assert(pptr == UINTPTR_MAX - RISCV_GET_LVL_PGSIZE(0) + 1);
162162
map_kernel_devices();
163163
}

0 commit comments

Comments
 (0)