Author: arty
Date: Sun Apr 29 07:58:12 2007
New Revision: 26573
URL:
http://svn.reactos.org/svn/reactos?rev=26573&view=rev
Log:
Get back to call into kernel.
Modified:
branches/powerpc/reactos/boot/freeldr/freeldr/reactos/reactos.c
Modified: branches/powerpc/reactos/boot/freeldr/freeldr/reactos/reactos.c
URL:
http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/boot/freeldr/fr…
==============================================================================
--- branches/powerpc/reactos/boot/freeldr/freeldr/reactos/reactos.c (original)
+++ branches/powerpc/reactos/boot/freeldr/freeldr/reactos/reactos.c Sun Apr 29 07:58:12
2007
@@ -415,6 +415,11 @@
rc = RegQueryValue(hOrderKey, GroupName, NULL, (PUCHAR)OrderList,
&BufferSize);
if (rc != ERROR_SUCCESS) OrderList[0] = 0;
+#ifdef _M_PPC
+ for (TagIndex = 0; TagIndex < BufferSize / sizeof(OrderList[0]); TagIndex++)
+ OrderList[TagIndex] = SWAPD(OrderList[TagIndex]);
+#endif
+
/* enumerate all drivers */
for (TagIndex = 1; TagIndex <= OrderList[0]; TagIndex++) {
@@ -452,6 +457,11 @@
DriverGroupSize = sizeof(DriverGroup);
rc = RegQueryValue(hDriverKey, L"Group", NULL,
(PUCHAR)DriverGroup, &DriverGroupSize);
DbgPrint((DPRINT_REACTOS, " Group: '%S' \n",
DriverGroup));
+
+#ifdef _M_PPC
+ StartValue = SWAPD(StartValue);
+ TagValue = SWAPD(TagValue);
+#endif
/* Make sure it should be started */
if ((StartValue == 0) &&