Kernel: Much improved BochsVGA (BXVGA) support.

Instead of cowboy-calling the VESA BIOS in the bootloader, find the emulator
VGA adapter by scanning the PCI bus. Then set up the desired video mode by
sending device commands.
This commit is contained in:
Andreas Kling 2019-02-06 10:17:26 +01:00
commit 731fc5a7c8
Notes: sideshowbarker 2024-07-19 15:51:15 +09:00
16 changed files with 298 additions and 114 deletions

View file

@ -23,6 +23,7 @@
#include "PS2MouseDevice.h"
#include "PTYMultiplexer.h"
#include "DevPtsFS.h"
#include "BochsVGADevice.h"
//#define SPAWN_GUITEST
#define SPAWN_GUITEST2
@ -170,11 +171,14 @@ void init()
MemoryManager::initialize();
StringImpl::initialize_globals();
BochsVGADevice::initialize_statics();
PIT::initialize();
memset(&system, 0, sizeof(system));
new BochsVGADevice;
auto new_procfs = ProcFS::create();
new_procfs->initialize();