From 96f1392d7b902aa74f01744189a508303633463f Mon Sep 17 00:00:00 2001 From: ReactOS Portable Systems Group Date: Mon, 30 Jun 2008 02:18:04 +0000 Subject: [PATCH] - Call IopStartRamdisk if booting from one. This completes kernel-side RAM disk boot support svn path=/trunk/; revision=34203 --- reactos/ntoskrnl/io/iomgr/iomgr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/ntoskrnl/io/iomgr/iomgr.c b/reactos/ntoskrnl/io/iomgr/iomgr.c index c25932d1a52..19e6b43f32e 100644 --- a/reactos/ntoskrnl/io/iomgr/iomgr.c +++ b/reactos/ntoskrnl/io/iomgr/iomgr.c @@ -512,6 +512,13 @@ IoInitSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock) IoSynchronousInvalidateDeviceRelations(IopRootDeviceNode-> PhysicalDeviceObject, BusRelations); + + /* Check if this was a ramdisk boot */ + if (RtlEqualMemory(LoaderBlock->ArcBootDeviceName, "ramdisk(0)", 10)) + { + /* Initialize the ramdisk driver */ + IopStartRamdisk(LoaderBlock); + } /* Create ARC names for boot devices */ IopCreateArcNames(LoaderBlock);