nova: propagate vga text info via platform_info

Issue #2880
This commit is contained in:
Alexander Boettcher 2018-06-23 17:19:12 +02:00 committed by Norman Feske
parent 54a7301225
commit 0db81f66ae
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ static bool cpuid_invariant_tsc()
struct Resolution : Register<64>
{
struct Bpp : Bitfield<0, 8> { };
struct Type : Bitfield<8, 8> { };
struct Type : Bitfield<8, 8> { enum { VGA_TEXT = 2 }; };
struct Height : Bitfield<16, 24> { };
struct Width : Bitfield<40, 24> { };
};
@ -681,7 +681,7 @@ Platform::Platform() :
if (!boot_fb)
return;
if (!efi_boot)
if (!efi_boot && (Resolution::Type::get(boot_fb->size) != Resolution::Type::VGA_TEXT))
return;
xml.node("framebuffer", [&] () {