mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Kernel/Graphics: Don't try to enumerate PCI adapters if PCI is disabled
If there's no PCI bus, then it's safe to assume that the x86 machine we run on supports VGA text mode console output with an ISA VGA adapter. If this is the case, we just instantiate a ISAVGAAdapter object that assumes this situation and allows us to boot into VGA text mode console.
This commit is contained in:
parent
15315be55c
commit
fafa339264
10 changed files with 197 additions and 72 deletions
|
@ -178,7 +178,7 @@ Optional<IntelNativeGraphicsAdapter::PLLSettings> IntelNativeGraphicsAdapter::cr
|
|||
}
|
||||
|
||||
IntelNativeGraphicsAdapter::IntelNativeGraphicsAdapter(PCI::Address address)
|
||||
: VGACompatibleAdapter(address)
|
||||
: PCIVGACompatibleAdapter(address)
|
||||
, m_registers(PCI::get_BAR0(address) & 0xfffffffc)
|
||||
, m_framebuffer_addr(PCI::get_BAR2(address) & 0xfffffffc)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue