Author: ros-arm-bringup
Date: Sun Jun 29 21:47:14 2008
New Revision: 34205
URL:
http://svn.reactos.org/svn/reactos?rev=34205&view=rev
Log:
- Plug in RAM Disk boot support in the loader.
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c [iso-8859-1] Sun Jun 29 21:47:14
2008
@@ -1461,6 +1461,22 @@
ArmLoaderBlock->Thread = ArmLoaderBlock->Process + sizeof(EPROCESS);
//
+ // Check if we're booting from RAM disk
+ //
+ if ((gRamDiskBase) && (gRamDiskSize))
+ {
+ //
+ // Allocate a descriptor to describe it
+ //
+ Status = ArmCreateMemoryDescriptor(LoaderXIPRom,
+ (ULONG_PTR)gRamDiskBase >> PAGE_SHIFT,
+ gRamDiskSize / PAGE_SIZE,
+ 0,
+ &Dummy);
+ if (Status != STATUS_SUCCESS) return;
+ }
+
+ //
// Loop memory list
//
NextEntry = ArmLoaderBlock->MemoryDescriptorListHead.Flink;