mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
A couple of header fixes to get all the FreeLDR-loaded boot drivers to compile and link.
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
This commit is contained in:
@@ -2285,7 +2285,7 @@ NdisDestroyLookaheadBufferFromSharedMemory(
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_M_IX86) || defined(_M_AMD64)
|
||||
#if defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM)
|
||||
|
||||
/*
|
||||
* VOID
|
||||
|
||||
@@ -230,16 +230,5 @@ KeGetCurrentPrcb(VOID)
|
||||
return PCR->Prcb;
|
||||
}
|
||||
|
||||
//
|
||||
// Macro to get current CPU
|
||||
//
|
||||
FORCEINLINE
|
||||
ULONG
|
||||
DDKAPI
|
||||
KeGetCurrentProcessorNumber(VOID)
|
||||
{
|
||||
return PCR->Number;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
#define PCR ((volatile KPCR * const)USPCR)
|
||||
#define USERPCR ((volatile KPCR * const)KIPCR)
|
||||
|
||||
//
|
||||
// Just read it from the PCR
|
||||
//
|
||||
#define KeGetCurrentProcessorNumber() ((ULONG)(PCR->Number))
|
||||
|
||||
//
|
||||
// Stub
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user