Fixes to un-break trunk:
authorKJK::Hyperion <hackbunny@reactos.org>
Sat, 30 Sep 2006 23:35:17 +0000 (23:35 +0000)
committerKJK::Hyperion <hackbunny@reactos.org>
Sat, 30 Sep 2006 23:35:17 +0000 (23:35 +0000)
 * Disabling XBox HAL for now (TEMPORARY MEASURE)
 * Port MP HAL to the new loader structures

svn path=/trunk/; revision=24325

reactos/hal/halx86/directory.rbuild
reactos/hal/halx86/include/hal.h
reactos/hal/halx86/mp/halinit_mp.c

index 5303d6c..c92f9b7 100644 (file)
@@ -7,6 +7,6 @@
 <directory name="mp">
        <xi:include href="mp/halmp.rbuild" />
 </directory>
-<directory name="xbox">
+<!--<directory name="xbox">
        <xi:include href="xbox/halxbox.rbuild" />
-</directory>
+</directory>-->
index b15a4d9..fcac7ee 100644 (file)
@@ -18,7 +18,7 @@
 #include <iotypes.h>
 #include <kefuncs.h>
 #include <halfuncs.h>
-#include <rosldr.h>
+#include <ldrtypes.h>
 
 #define KPCR_BASE 0xFF000000 // HACK!
 
index 8d48d8c..9756923 100644 (file)
@@ -22,7 +22,7 @@ ULONG_PTR KernelBase;
 
 /***************************************************************************/
 VOID
-HalpInitPhase0(PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
+HalpInitPhase0(PLOADER_PARAMETER_BLOCK LoaderBlock)
 
 {
    static BOOLEAN MPSInitialized = FALSE;
@@ -35,7 +35,7 @@ HalpInitPhase0(PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
    DPRINT("HalpInitPhase0()\n");
 
 
-   if (MPSInitialized) 
+   if (MPSInitialized)
    {
       KEBUGCHECK(0);
    }
@@ -48,7 +48,7 @@ HalpInitPhase0(PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
    }
 
    /* store the kernel base for later use */
-   KernelBase = ((PLOADER_MODULE)LoaderBlock->ModsAddr)[0].ModStart;
+   KernelBase = (ULONG_PTR)CONTAINING_RECORD(LoaderBlock->LoadOrderListHead.Flink, LDR_DATA_TABLE_ENTRY, InLoadOrderLinks)->DllBase;
 
 }