A couple of header fixes to get all the FreeLDR-loaded boot drivers to compile and...
authorReactOS Portable Systems Group <ros-arm-bringup@svn.reactos.org>
Sat, 9 Feb 2008 00:59:05 +0000 (00:59 +0000)
committerReactOS Portable Systems Group <ros-arm-bringup@svn.reactos.org>
Sat, 9 Feb 2008 00:59:05 +0000 (00:59 +0000)
FreeLDR now stops at ArmPrepareForReactOS, when we get to enable the MMU, Caches and other such fun stuff.
Bring-up now really starts!

svn path=/trunk/; revision=32233

reactos/include/ddk/ndis.h
reactos/include/ndk/arm/ketypes.h
reactos/include/reactos/armddk.h

index d34ca92..baf39ef 100644 (file)
@@ -2285,7 +2285,7 @@ NdisDestroyLookaheadBufferFromSharedMemory(
 
 #endif
 
-#if defined(_M_IX86) || defined(_M_AMD64)
+#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)
 
 /*
  * VOID
index 6f64e48..9ab0e53 100644 (file)
@@ -230,16 +230,5 @@ KeGetCurrentPrcb(VOID)
     return PCR->Prcb;
 }
 
-//
-// Macro to get current CPU
-//
-FORCEINLINE
-ULONG
-DDKAPI
-KeGetCurrentProcessorNumber(VOID)
-{
-    return PCR->Number;
-}
-
 #endif
 #endif
index 53c3ee2..8775eff 100644 (file)
 #define PCR                     ((volatile KPCR * const)USPCR)
 #define USERPCR                 ((volatile KPCR * const)KIPCR)
 
+//
+// Just read it from the PCR
+//
+#define KeGetCurrentProcessorNumber() ((ULONG)(PCR->Number))
+
 //
 // Stub
 //