Skip to content

Commit 380c914

Browse files
committed
protos/linux_x86: Convert lfb_size to 64 KiB units on BIOS path
1 parent 3f17a63 commit 380c914

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/protos/linux_x86.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,7 @@ set_textmode:;
549549

550550
#if defined (BIOS)
551551
screen_info->orig_video_isVGA = VIDEO_TYPE_VLFB;
552+
screen_info->lfb_size = DIV_ROUNDUP(screen_info->lfb_size, 65536);
552553
#elif defined (UEFI)
553554
screen_info->orig_video_isVGA = VIDEO_TYPE_EFI;
554555
#endif

0 commit comments

Comments
 (0)