Skip to content

Commit

Permalink
[Kernel] Kernel-mode graphics uses macro to find remapped physical fr…
Browse files Browse the repository at this point in the history
…amebuffer address
  • Loading branch information
codyd51 committed Feb 5, 2024
1 parent 69b3bea commit 88eabcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/gfx/lib/gfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void kernel_gfx_write_line_rendered_string_ex(char* str, bool higher_half) {
framebuffer_info_t fb = b->framebuffer;
uint64_t addr = fb.address;
if (higher_half) {
addr += KERNEL_MEMORY_BASE;
addr = PMA_TO_VMA(addr);
}

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

0 comments on commit 88eabcd

Please sign in to comment.