[kernel] Pass the fb phys addr to userspace

Instead of always mapping the framebuffer at an arbitrary location, and
so reporting that to userspace, send the physical address so drivers can
call system_map_mmio().
This commit is contained in:
Justin C. Miller
2021-02-04 19:52:59 -08:00
parent b3f59acf7e
commit b3861decc3
4 changed files with 31 additions and 23 deletions

View File

@@ -28,7 +28,7 @@ struct j6_init_value {
/// `flags` has the following bits:
/// 0-3: Pixel layout. 0000: rgb8, 0001: bgr8
struct j6_init_framebuffer {
void* addr;
uintptr_t addr;
size_t size;
uint32_t vertical;
uint32_t horizontal;