Skip to content

Commit 88eabcd

Browse files
committed
[Kernel] Kernel-mode graphics uses macro to find remapped physical framebuffer address
1 parent 69b3bea commit 88eabcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/gfx/lib/gfx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void kernel_gfx_write_line_rendered_string_ex(char* str, bool higher_half) {
203203
framebuffer_info_t fb = b->framebuffer;
204204
uint64_t addr = fb.address;
205205
if (higher_half) {
206-
addr += KERNEL_MEMORY_BASE;
206+
addr = PMA_TO_VMA(addr);
207207
}
208208

209209
Point end_cursor = kernel_gfx_draw_string((uint8_t*)addr, str, _g_cursor, color_white(), _g_font_size);

0 commit comments

Comments
 (0)