diff --git a/subsystems/mvdm/ntvdm/CMakeLists.txt b/subsystems/mvdm/ntvdm/CMakeLists.txt index aa01e0727d3..900cc1b5f20 100644 --- a/subsystems/mvdm/ntvdm/CMakeLists.txt +++ b/subsystems/mvdm/ntvdm/CMakeLists.txt @@ -41,6 +41,8 @@ list(APPEND SOURCE hardware/ps2.c hardware/sound/speaker.c hardware/video/svga.c + hardware/parallel.c + hardware/parallel.h dos/dos32krnl/bios.c dos/dos32krnl/condrv.c dos/dos32krnl/country.c diff --git a/subsystems/mvdm/ntvdm/emulator.c b/subsystems/mvdm/ntvdm/emulator.c index 4f3dfb64e98..c7e7f73e1b3 100644 --- a/subsystems/mvdm/ntvdm/emulator.c +++ b/subsystems/mvdm/ntvdm/emulator.c @@ -36,6 +36,7 @@ #include "hardware/ps2.h" #include "hardware/sound/speaker.h" #include "hardware/video/svga.h" +#include "hardware/parallel.h" /**/ #include "./console/video.h" /**/ @@ -537,6 +538,8 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput) /* Initialize DMA */ DmaInitialize(); + ParallelInitialize(); + /* Initialize PIC, PIT, CMOS, PC Speaker and PS/2 */ PicInitialize(); @@ -554,7 +557,6 @@ BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput) /* Initialize the keyboard and mouse and connect them to their PS/2 ports */ KeyboardInit(0); MouseInit(1); - /**************** ATTACH INPUT WITH CONSOLE *****************/ /* Create the task event */ VdmTaskEvent = CreateEventW(NULL, TRUE, FALSE, NULL); @@ -651,6 +653,7 @@ VOID EmulatorCleanup(VOID) VdmTaskEvent = NULL; PS2Cleanup(); + ParallelCleanup(); SpeakerCleanup(); CmosCleanup();