diff options
author | Marvin Borner | 2021-05-18 18:37:19 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-18 18:37:50 +0200 |
commit | 4b4bfec8a312132acc84b5166998d0cfa7c01931 (patch) | |
tree | eeb494cf539b4bfdb6dae23a34f5f1c5d7167667 /kernel/drivers | |
parent | eb13f2a8f536fecf918699bc19b3087a78a417d6 (diff) |
Improved entire building chain (especially debugging)
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/fb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/drivers/fb.c b/kernel/drivers/fb.c index 8122654..6a81434 100644 --- a/kernel/drivers/fb.c +++ b/kernel/drivers/fb.c @@ -29,7 +29,10 @@ PROTECTED static struct vbe_basic *vbe = NULL; static u32 fb_map_buffer(struct page_dir *dir) { assert(vbe); - return virtual_alloc(dir, memory_range_around((u32)vbe->fb, FB_SIZE), MEMORY_USER).base; + struct memory_range r = + virtual_alloc(dir, memory_range_around((u32)vbe->fb, FB_SIZE), MEMORY_USER); + printf("FB: %x+%x\n", r.base, r.size); + return r.base; } static u32 fb_owner = 0; |