Author: hbelusca
Date: Sun Jan 4 13:01:14 2015
New Revision: 65968
URL:
http://svn.reactos.org/svn/reactos?rev=65968&view=rev
Log:
[FREELDR]: Do the same thing as how we fill out the ARC disk block elsewhere.
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/arm/macharm.c [iso-8859-1] Sun Jan 4 13:01:14
2015
@@ -29,8 +29,9 @@
ULONG SecondLevelIcacheSize;
ULONG SecondLevelIcacheFillSize;
-ARC_DISK_SIGNATURE reactos_arc_disk_info;
-ULONG reactos_disk_count;
+extern ULONG reactos_disk_count;
+extern ARC_DISK_SIGNATURE reactos_arc_disk_info[];
+extern CHAR reactos_arc_strings[32][256];
ULONG SizeBits[] =
{
@@ -146,10 +147,13 @@
RamDiskInitialize();
/* Fill out the ARC disk block */
- reactos_arc_disk_info.Signature = 0xBADAB00F;
- reactos_arc_disk_info.CheckSum = 0xDEADBABE;
- reactos_arc_disk_info.ArcName = "ramdisk(0)";
- reactos_disk_count = 1;
+ reactos_arc_disk_info[reactos_disk_count].Signature = 0xBADAB00F;
+ reactos_arc_disk_info[reactos_disk_count].CheckSum = 0xDEADBABE;
+ strcpy(reactos_arc_strings[reactos_disk_count], "ramdisk(0)");
+ reactos_arc_disk_info[reactos_disk_count].ArcName =
+ reactos_arc_strings[reactos_disk_count];
+ reactos_disk_count++;
+ ASSERT(reactos_disk_count == 1);
/* Return the root node */
return RootNode;