1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:35:09 +00:00

Kernel/Graphics: Only search for PCI graphics cards on x86_64

This is for the upcoming commit that merges the x86_64 and aarch64
init.cpp files.
This commit is contained in:
Timon Kruiper 2023-04-01 01:59:05 +02:00 committed by Andrew Kaster
parent 14d20618f1
commit 1fa1f09c38

View file

@ -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;
@ -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