From 98bea083c406ce569a502fe0d497259673f8b182 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 30 Jul 2020 02:11:46 +0100 Subject: [PATCH] Kernel: Make BXVGA detection actually detect VBoxVGA I decided to play around with trying to run Serenity in VirtualBox. It crashed WindowServer with a beautiful array of multi-color flashing letters :^) Skipping getting side-tracked seeing that it chose MBVGA in the serial debug and trying to debug why it caused such a display, I finally checked BXVGA. While find_framebuffer_address checks for VBoxVGA, init_stage2 didn't. Whoops! --- Kernel/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/init.cpp b/Kernel/init.cpp index b096f616bf..09c75da774 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -212,7 +212,7 @@ void init_stage2() } else { bool bxvga_found = false; PCI::enumerate([&](const PCI::Address&, PCI::ID id) { - if (id.vendor_id == 0x1234 && id.device_id == 0x1111) + if ((id.vendor_id == 0x1234 && id.device_id == 0x1111) || (id.vendor_id == 0x80ee && id.device_id == 0xbeef)) bxvga_found = true; });