Implement ramdisk support for FreeLDR (ramdisk.c and ramdisk.h). The implementation...
[reactos.git] / reactos / boot / freeldr / freeldr / reactos / reactos.c
index 2df4c98..abc4604 100644 (file)
@@ -707,6 +707,15 @@ LoadAndBootReactOS(PCSTR OperatingSystemName)
 
        UiDrawStatusText("Loading...");
 
+       //
+       // If we have a ramdisk, this will switch to the ramdisk disk routines
+       // which read from memory instead of using the firmware. This has to be done
+       // after hardware detection, since hardware detection will require using the
+       // real routines in order to perform disk-detection (just because we're on a
+       // ram-boot doesn't mean the user doesn't have actual disks installed too!)
+       //
+       RamDiskSwitchFromBios();
+
        /*
         * Try to open system drive
         */