1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

Kernel: Try to detect Sound Blaster 16 before creating an instance

We shouldn't create a SB16 instance without checking if the Sound
Blaster 16 card is actually installed in the system.
This commit is contained in:
Liav A 2021-02-05 08:18:46 +02:00 committed by Andreas Kling
parent 5bb35da784
commit f2faf11d61
3 changed files with 16 additions and 2 deletions

View file

@ -268,7 +268,7 @@ void init_stage2(void*)
new FullDevice;
new RandomDevice;
PTYMultiplexer::initialize();
new SB16;
SB16::detect();
VMWareBackdoor::the(); // don't wait until first mouse packet
bool force_pio = kernel_command_line().contains("force_pio");