From d43dc03efa8a6dcf315e3ef34b23daf09a4304fc Mon Sep 17 00:00:00 2001 From: mintsuki Date: Fri, 14 Oct 2022 14:28:17 +0200 Subject: [PATCH] linux: Revert 793d0293 --- common/protos/linux.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/common/protos/linux.c b/common/protos/linux.c index c72cac6a..e383f6ae 100644 --- a/common/protos/linux.c +++ b/common/protos/linux.c @@ -536,7 +536,7 @@ set_textmode:; screen_info->orig_video_isVGA = VIDEO_TYPE_VGAC; #endif } else { - screen_info->capabilities = VIDEO_CAPABILITY_SKIP_QUIRKS; + screen_info->capabilities = VIDEO_CAPABILITY_64BIT_BASE | VIDEO_CAPABILITY_SKIP_QUIRKS; screen_info->flags = VIDEO_FLAGS_NOCURSOR; screen_info->lfb_base = (uint32_t)fbinfo.framebuffer_addr; screen_info->ext_lfb_base = (uint32_t)(fbinfo.framebuffer_addr >> 32); @@ -552,14 +552,11 @@ set_textmode:; screen_info->blue_size = fbinfo.blue_mask_size; screen_info->blue_pos = fbinfo.blue_mask_shift; +#if defined (BIOS) screen_info->orig_video_isVGA = VIDEO_TYPE_VLFB; - - if (fbinfo.framebuffer_addr > (uint64_t)0xffffffff) { - screen_info->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; -#if defined (UEFI) - screen_info->orig_video_isVGA = VIDEO_TYPE_EFI; +#elif defined (UEFI) + screen_info->orig_video_isVGA = VIDEO_TYPE_EFI; #endif - } } #if defined (UEFI)