Skip to content

Commit

Permalink
Kernel/Graphics: Only search for PCI graphics cards on x86_64
Browse files Browse the repository at this point in the history
This is for the upcoming commit that merges the x86_64 and aarch64
init.cpp files.
  • Loading branch information
FireFox317 authored and ADKaster committed Apr 4, 2023
1 parent 14d2061 commit 1fa1f09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Kernel/Graphics/GraphicsManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize()
return true;
}

#if ARCH(X86_64)
if (PCI::Access::is_disabled()) {
dmesgln("Graphics: Using an assumed-to-exist ISA VGA compatible generic adapter");
return true;
Expand All @@ -237,6 +238,7 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize()
if (auto result = determine_and_initialize_graphics_device(device_identifier); result.is_error())
dbgln("Failed to initialize device {}, due to {}", device_identifier.address(), result.error());
}));
#endif

// Note: If we failed to find any graphics device to be used natively, but the
// bootloader prepared a framebuffer for us to use, then just create a DisplayConnector
Expand Down

0 comments on commit 1fa1f09

Please sign in to comment.