Skip to content

Commit

Permalink
nova: propagate vga text info via platform_info
Browse files Browse the repository at this point in the history
Issue #2880
  • Loading branch information
alex-ab authored and nfeske committed Jun 29, 2018
1 parent dd5fe0d commit 619d482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repos/base-nova/src/core/platform.cc
Expand Up @@ -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> { };
};
Expand Down Expand Up @@ -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", [&] () {
Expand Down

0 comments on commit 619d482

Please sign in to comment.