Rename map_device to map_region to better describe its use.

This commit is contained in:
Martin Whitaker
2022-02-27 15:41:14 +00:00
parent 604b22449a
commit a65d6a795d
4 changed files with 13 additions and 12 deletions

View File

@@ -215,7 +215,7 @@ void screen_init(void)
if (lfb_height > 8192) lfb_height = 8192;
// The above clipping should guarantee the mapping never fails.
lfb_base = map_device(lfb_base, lfb_height * lfb_width * lfb_bytes_per_pixel);
lfb_base = map_region(lfb_base, lfb_height * lfb_width * lfb_bytes_per_pixel);
// Blank the whole framebuffer.
int pixels_per_word = sizeof(uint32_t) / lfb_bytes_per_pixel;