mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
loader: Fix shadow_fb allocation
Using AllocateMaxAddress here means that gfx_state->tg_shadow_fb is treated as the highest address we can receive. Since gfx_state->tg_shadow_fb is NULL, we never receive anything. Use AllocateAnyPages instead. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1098
This commit is contained in:
parent
f0d5b1bdf0
commit
95f75b0e6e
@ -656,7 +656,7 @@ efi_find_framebuffer(teken_gfx_t *gfx_state)
|
||||
gfx_state->tg_shadow_sz =
|
||||
EFI_SIZE_TO_PAGES(efifb.fb_height * efifb.fb_width *
|
||||
sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
|
||||
status = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData,
|
||||
status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
|
||||
gfx_state->tg_shadow_sz,
|
||||
(EFI_PHYSICAL_ADDRESS *)&gfx_state->tg_shadow_fb);
|
||||
if (status != EFI_SUCCESS)
|
||||
|
Loading…
Reference in New Issue
Block a user