- FORCEINLINE belongs before the return type (-Wold-style-declaration)

svn path=/trunk/; revision=61098
This commit is contained in:
Thomas Faber 2013-11-26 13:45:33 +00:00
parent 84852426dd
commit f9209a2045
16 changed files with 76 additions and 76 deletions

View file

@ -27,8 +27,8 @@ C_ASSERT(RtlBalancedAvlTree == 0);
/* FUNCTIONS ******************************************************************/ /* FUNCTIONS ******************************************************************/
TABLE_SEARCH_RESULT
FORCEINLINE FORCEINLINE
TABLE_SEARCH_RESULT
RtlpFindAvlTableNodeOrParent(IN PRTL_AVL_TABLE Table, RtlpFindAvlTableNodeOrParent(IN PRTL_AVL_TABLE Table,
IN PVOID Buffer, IN PVOID Buffer,
OUT PRTL_BALANCED_LINKS *NodeOrParent) OUT PRTL_BALANCED_LINKS *NodeOrParent)
@ -94,8 +94,8 @@ RtlpFindAvlTableNodeOrParent(IN PRTL_AVL_TABLE Table,
} }
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlPromoteAvlTreeNode(IN PRTL_BALANCED_LINKS Node) RtlPromoteAvlTreeNode(IN PRTL_BALANCED_LINKS Node)
{ {
PRTL_BALANCED_LINKS ParentNode, SuperParentNode; PRTL_BALANCED_LINKS ParentNode, SuperParentNode;
@ -122,8 +122,8 @@ RtlPromoteAvlTreeNode(IN PRTL_BALANCED_LINKS Node)
RtlSetParent(Node, SuperParentNode); RtlSetParent(Node, SuperParentNode);
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
RtlpRebalanceAvlTreeNode(IN PRTL_BALANCED_LINKS Node) RtlpRebalanceAvlTreeNode(IN PRTL_BALANCED_LINKS Node)
{ {
PRTL_BALANCED_LINKS ChildNode, SubChildNode; PRTL_BALANCED_LINKS ChildNode, SubChildNode;
@ -203,8 +203,8 @@ RtlpRebalanceAvlTreeNode(IN PRTL_BALANCED_LINKS Node)
return TRUE; return TRUE;
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlpInsertAvlTreeNode(IN PRTL_AVL_TABLE Table, RtlpInsertAvlTreeNode(IN PRTL_AVL_TABLE Table,
IN PRTL_BALANCED_LINKS NewNode, IN PRTL_BALANCED_LINKS NewNode,
IN OUT PVOID NodeOrParent, IN OUT PVOID NodeOrParent,
@ -290,8 +290,8 @@ RtlpInsertAvlTreeNode(IN PRTL_AVL_TABLE Table,
} }
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlpDeleteAvlTreeNode(IN PRTL_AVL_TABLE Table, RtlpDeleteAvlTreeNode(IN PRTL_AVL_TABLE Table,
IN PRTL_BALANCED_LINKS Node) IN PRTL_BALANCED_LINKS Node)
{ {

View file

@ -83,8 +83,8 @@ FsRtlIsNotifyOnList(IN PLIST_ENTRY NotifyList,
return NULL; return NULL;
} }
VOID
FORCEINLINE FORCEINLINE
VOID
FsRtlNotifyAcquireFastMutex(IN PREAL_NOTIFY_SYNC RealNotifySync) FsRtlNotifyAcquireFastMutex(IN PREAL_NOTIFY_SYNC RealNotifySync)
{ {
ULONG_PTR CurrentThread = (ULONG_PTR)KeGetCurrentThread(); ULONG_PTR CurrentThread = (ULONG_PTR)KeGetCurrentThread();
@ -233,8 +233,8 @@ FsRtlNotifyCompleteIrpList(IN PNOTIFY_CHANGE NotifyChange,
} }
} }
VOID
FORCEINLINE FORCEINLINE
VOID
FsRtlNotifyReleaseFastMutex(IN PREAL_NOTIFY_SYNC RealNotifySync) FsRtlNotifyReleaseFastMutex(IN PREAL_NOTIFY_SYNC RealNotifySync)
{ {
RealNotifySync->OwnerCount--; RealNotifySync->OwnerCount--;

View file

@ -553,8 +553,8 @@ extern CHAR KiSystemCallExit2[];
// //
// Returns a thread's FPU save area // Returns a thread's FPU save area
// //
PFX_SAVE_AREA
FORCEINLINE FORCEINLINE
PFX_SAVE_AREA
KiGetThreadNpxArea(IN PKTHREAD Thread) KiGetThreadNpxArea(IN PKTHREAD Thread)
{ {
return (PFX_SAVE_AREA)((ULONG_PTR)Thread->InitialStack - sizeof(FX_SAVE_AREA)); return (PFX_SAVE_AREA)((ULONG_PTR)Thread->InitialStack - sizeof(FX_SAVE_AREA));
@ -614,9 +614,9 @@ Ke386SanitizeDr(IN PVOID DrAddress,
// //
// Exception with no arguments // Exception with no arguments
// //
VOID
FORCEINLINE FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID
KiDispatchException0Args(IN NTSTATUS Code, KiDispatchException0Args(IN NTSTATUS Code,
IN ULONG_PTR Address, IN ULONG_PTR Address,
IN PKTRAP_FRAME TrapFrame) IN PKTRAP_FRAME TrapFrame)
@ -628,9 +628,9 @@ KiDispatchException0Args(IN NTSTATUS Code,
// //
// Exception with one argument // Exception with one argument
// //
VOID
FORCEINLINE FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID
KiDispatchException1Args(IN NTSTATUS Code, KiDispatchException1Args(IN NTSTATUS Code,
IN ULONG_PTR Address, IN ULONG_PTR Address,
IN ULONG P1, IN ULONG P1,
@ -643,9 +643,9 @@ KiDispatchException1Args(IN NTSTATUS Code,
// //
// Exception with two arguments // Exception with two arguments
// //
VOID
FORCEINLINE FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID
KiDispatchException2Args(IN NTSTATUS Code, KiDispatchException2Args(IN NTSTATUS Code,
IN ULONG_PTR Address, IN ULONG_PTR Address,
IN ULONG P1, IN ULONG P1,
@ -676,8 +676,8 @@ KiDispatchException2Args(IN NTSTATUS Code,
* *
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
NTSTATUS
FORCEINLINE FORCEINLINE
NTSTATUS
KiSystemCallTrampoline(IN PVOID Handler, KiSystemCallTrampoline(IN PVOID Handler,
IN PVOID Arguments, IN PVOID Arguments,
IN ULONG StackBytes) IN ULONG StackBytes)
@ -702,8 +702,8 @@ KiSystemCallTrampoline(IN PVOID Handler,
return Result; return Result;
} }
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
NTSTATUS
FORCEINLINE FORCEINLINE
NTSTATUS
KiSystemCallTrampoline(IN PVOID Handler, KiSystemCallTrampoline(IN PVOID Handler,
IN PVOID Arguments, IN PVOID Arguments,
IN ULONG StackBytes) IN ULONG StackBytes)
@ -729,8 +729,8 @@ KiSystemCallTrampoline(IN PVOID Handler,
// //
// Checks for pending APCs // Checks for pending APCs
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiCheckForApcDelivery(IN PKTRAP_FRAME TrapFrame) KiCheckForApcDelivery(IN PKTRAP_FRAME TrapFrame)
{ {
PKTHREAD Thread; PKTHREAD Thread;
@ -767,8 +767,8 @@ KiCheckForApcDelivery(IN PKTRAP_FRAME TrapFrame)
// Converts a base thread to a GUI thread // Converts a base thread to a GUI thread
// //
#ifdef __GNUC__ #ifdef __GNUC__
NTSTATUS
FORCEINLINE FORCEINLINE
NTSTATUS
KiConvertToGuiThread(VOID) KiConvertToGuiThread(VOID)
{ {
NTSTATUS Result; NTSTATUS Result;
@ -814,8 +814,8 @@ KiConvertToGuiThread(VOID);
// //
// Switches from boot loader to initial kernel stack // Switches from boot loader to initial kernel stack
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiSwitchToBootStack(IN ULONG_PTR InitialStack) KiSwitchToBootStack(IN ULONG_PTR InitialStack)
{ {
/* We have to switch to a new stack before continuing kernel initialization */ /* We have to switch to a new stack before continuing kernel initialization */
@ -849,9 +849,9 @@ KiSwitchToBootStack(IN ULONG_PTR InitialStack)
// //
// Emits the iret instruction for C code // Emits the iret instruction for C code
// //
FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID VOID
FORCEINLINE
KiIret(VOID) KiIret(VOID)
{ {
#if defined(__GNUC__) #if defined(__GNUC__)
@ -874,8 +874,8 @@ KiIret(VOID)
// Normally this is done by the HAL, but on x86 as an optimization, the kernel // Normally this is done by the HAL, but on x86 as an optimization, the kernel
// initiates the end by calling back into the HAL and exiting the trap here. // initiates the end by calling back into the HAL and exiting the trap here.
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiEndInterrupt(IN KIRQL Irql, KiEndInterrupt(IN KIRQL Irql,
IN PKTRAP_FRAME TrapFrame) IN PKTRAP_FRAME TrapFrame)
{ {
@ -890,8 +890,8 @@ KiEndInterrupt(IN KIRQL Irql,
// //
// PERF Code // PERF Code
// //
VOID
FORCEINLINE FORCEINLINE
VOID
Ki386PerfEnd(VOID) Ki386PerfEnd(VOID)
{ {
extern ULONGLONG BootCyclesEnd, BootCycles; extern ULONGLONG BootCyclesEnd, BootCycles;

View file

@ -19,8 +19,8 @@
// //
// Helper Code // Helper Code
// //
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
KiUserTrap(IN PKTRAP_FRAME TrapFrame) KiUserTrap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Anything else but Ring 0 is Ring 3 */ /* Anything else but Ring 0 is Ring 3 */
@ -30,8 +30,8 @@ KiUserTrap(IN PKTRAP_FRAME TrapFrame)
// //
// Debug Macros // Debug Macros
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiDumpTrapFrame(IN PKTRAP_FRAME TrapFrame) KiDumpTrapFrame(IN PKTRAP_FRAME TrapFrame)
{ {
/* Dump the whole thing */ /* Dump the whole thing */
@ -100,8 +100,8 @@ KiFillTrapFrameDebug(IN PKTRAP_FRAME TrapFrame)
extern BOOLEAN StopChecking; extern BOOLEAN StopChecking;
VOID
FORCEINLINE FORCEINLINE
VOID
KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame, KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
IN BOOLEAN SkipPreviousMode) IN BOOLEAN SkipPreviousMode)
{ {
@ -180,8 +180,8 @@ KiExitTrapDebugChecks(IN PKTRAP_FRAME TrapFrame,
StopChecking = FALSE; StopChecking = FALSE;
} }
VOID
FORCEINLINE FORCEINLINE
VOID
KiExitSystemCallDebugChecks(IN ULONG SystemCall, KiExitSystemCallDebugChecks(IN ULONG SystemCall,
IN PKTRAP_FRAME TrapFrame) IN PKTRAP_FRAME TrapFrame)
{ {
@ -248,8 +248,8 @@ extern PFAST_SYSTEM_CALL_EXIT KiFastCallExitHandler;
// //
// Save user mode debug registers and restore kernel values // Save user mode debug registers and restore kernel values
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiHandleDebugRegistersOnTrapEntry( KiHandleDebugRegistersOnTrapEntry(
IN PKTRAP_FRAME TrapFrame) IN PKTRAP_FRAME TrapFrame)
{ {
@ -275,8 +275,8 @@ KiHandleDebugRegistersOnTrapEntry(
__writedr(7, Prcb->ProcessorState.SpecialRegisters.KernelDr7); __writedr(7, Prcb->ProcessorState.SpecialRegisters.KernelDr7);
} }
VOID
FORCEINLINE FORCEINLINE
VOID
KiHandleDebugRegistersOnTrapExit( KiHandleDebugRegistersOnTrapExit(
PKTRAP_FRAME TrapFrame) PKTRAP_FRAME TrapFrame)
{ {
@ -295,9 +295,9 @@ KiHandleDebugRegistersOnTrapExit(
// //
// Virtual 8086 Mode Optimized Trap Exit // Virtual 8086 Mode Optimized Trap Exit
// //
VOID
FORCEINLINE FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID
KiExitV86Trap(IN PKTRAP_FRAME TrapFrame) KiExitV86Trap(IN PKTRAP_FRAME TrapFrame)
{ {
PKTHREAD Thread; PKTHREAD Thread;
@ -342,8 +342,8 @@ KiExitV86Trap(IN PKTRAP_FRAME TrapFrame)
// //
// Virtual 8086 Mode Optimized Trap Entry // Virtual 8086 Mode Optimized Trap Entry
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiEnterV86Trap(IN PKTRAP_FRAME TrapFrame) KiEnterV86Trap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Save exception list */ /* Save exception list */
@ -361,8 +361,8 @@ KiEnterV86Trap(IN PKTRAP_FRAME TrapFrame)
// //
// Interrupt Trap Entry // Interrupt Trap Entry
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiEnterInterruptTrap(IN PKTRAP_FRAME TrapFrame) KiEnterInterruptTrap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Save exception list and terminate it */ /* Save exception list and terminate it */
@ -391,8 +391,8 @@ KiEnterInterruptTrap(IN PKTRAP_FRAME TrapFrame)
// //
// Generic Trap Entry // Generic Trap Entry
// //
VOID
FORCEINLINE FORCEINLINE
VOID
KiEnterTrap(IN PKTRAP_FRAME TrapFrame) KiEnterTrap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Save exception list */ /* Save exception list */

View file

@ -852,8 +852,8 @@ KiCheckAlertability(IN PKTHREAD Thread,
return STATUS_WAIT_0; return STATUS_WAIT_0;
} }
ULONG
FORCEINLINE FORCEINLINE
ULONG
KiComputeTimerTableIndex(IN ULONGLONG DueTime) KiComputeTimerTableIndex(IN ULONGLONG DueTime)
{ {
return (DueTime / KeMaximumIncrement) & (TIMER_TABLE_SIZE - 1); return (DueTime / KeMaximumIncrement) & (TIMER_TABLE_SIZE - 1);

View file

@ -24,8 +24,8 @@ typedef struct _KNOWN_COMPOUND_ACE
ULONG SidStart; ULONG SidStart;
} KNOWN_COMPOUND_ACE, *PKNOWN_COMPOUND_ACE; } KNOWN_COMPOUND_ACE, *PKNOWN_COMPOUND_ACE;
PSID
FORCEINLINE FORCEINLINE
PSID
SepGetGroupFromDescriptor(PVOID _Descriptor) SepGetGroupFromDescriptor(PVOID _Descriptor)
{ {
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor; PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
@ -43,8 +43,8 @@ SepGetGroupFromDescriptor(PVOID _Descriptor)
} }
} }
PSID
FORCEINLINE FORCEINLINE
PSID
SepGetOwnerFromDescriptor(PVOID _Descriptor) SepGetOwnerFromDescriptor(PVOID _Descriptor)
{ {
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor; PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
@ -62,8 +62,8 @@ SepGetOwnerFromDescriptor(PVOID _Descriptor)
} }
} }
PACL
FORCEINLINE FORCEINLINE
PACL
SepGetDaclFromDescriptor(PVOID _Descriptor) SepGetDaclFromDescriptor(PVOID _Descriptor)
{ {
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor; PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
@ -83,8 +83,8 @@ SepGetDaclFromDescriptor(PVOID _Descriptor)
} }
} }
PACL
FORCEINLINE FORCEINLINE
PACL
SepGetSaclFromDescriptor(PVOID _Descriptor) SepGetSaclFromDescriptor(PVOID _Descriptor)
{ {
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor; PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;

View file

@ -277,8 +277,8 @@ IopMountInitializeVpb(IN PDEVICE_OBJECT DeviceObject,
/* /*
* @implemented * @implemented
*/ */
VOID
FORCEINLINE FORCEINLINE
VOID
IopNotifyFileSystemChange(IN PDEVICE_OBJECT DeviceObject, IopNotifyFileSystemChange(IN PDEVICE_OBJECT DeviceObject,
IN BOOLEAN DriverActive) IN BOOLEAN DriverActive)
{ {

View file

@ -129,9 +129,9 @@ KiConnectVectorToInterrupt(IN PKINTERRUPT Interrupt,
KeRegisterInterruptHandler(Interrupt->Vector, Handler); KeRegisterInterruptHandler(Interrupt->Vector, Handler);
} }
VOID
FORCEINLINE FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID
KiExitInterrupt(IN PKTRAP_FRAME TrapFrame, KiExitInterrupt(IN PKTRAP_FRAME TrapFrame,
IN KIRQL OldIrql, IN KIRQL OldIrql,
IN BOOLEAN Spurious) IN BOOLEAN Spurious)

View file

@ -57,8 +57,8 @@ BOOLEAN StopChecking = FALSE;
/* TRAP EXIT CODE *************************************************************/ /* TRAP EXIT CODE *************************************************************/
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
KiVdmTrap(IN PKTRAP_FRAME TrapFrame) KiVdmTrap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Either the V8086 flag is on, or this is user-mode with a VDM */ /* Either the V8086 flag is on, or this is user-mode with a VDM */
@ -66,16 +66,16 @@ KiVdmTrap(IN PKTRAP_FRAME TrapFrame)
((KiUserTrap(TrapFrame)) && (PsGetCurrentProcess()->VdmObjects))); ((KiUserTrap(TrapFrame)) && (PsGetCurrentProcess()->VdmObjects)));
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
KiV86Trap(IN PKTRAP_FRAME TrapFrame) KiV86Trap(IN PKTRAP_FRAME TrapFrame)
{ {
/* Check if the V8086 flag is on */ /* Check if the V8086 flag is on */
return ((TrapFrame->EFlags & EFLAGS_V86_MASK) != 0); return ((TrapFrame->EFlags & EFLAGS_V86_MASK) != 0);
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
KiIsFrameEdited(IN PKTRAP_FRAME TrapFrame) KiIsFrameEdited(IN PKTRAP_FRAME TrapFrame)
{ {
/* An edited frame changes esp. It is marked by clearing the bits /* An edited frame changes esp. It is marked by clearing the bits
@ -83,8 +83,8 @@ KiIsFrameEdited(IN PKTRAP_FRAME TrapFrame)
return ((TrapFrame->SegCs & FRAME_EDITED) == 0); return ((TrapFrame->SegCs & FRAME_EDITED) == 0);
} }
VOID
FORCEINLINE FORCEINLINE
VOID
KiCommonExit(IN PKTRAP_FRAME TrapFrame, BOOLEAN SkipPreviousMode) KiCommonExit(IN PKTRAP_FRAME TrapFrame, BOOLEAN SkipPreviousMode)
{ {
/* Disable interrupts until we return */ /* Disable interrupts until we return */
@ -1521,9 +1521,9 @@ KiDbgPostServiceHook(ULONG SystemCallNumber, ULONG_PTR Result)
return Result; return Result;
} }
FORCEINLINE
DECLSPEC_NORETURN DECLSPEC_NORETURN
VOID VOID
FORCEINLINE
KiSystemCall(IN PKTRAP_FRAME TrapFrame, KiSystemCall(IN PKTRAP_FRAME TrapFrame,
IN PVOID Arguments) IN PVOID Arguments)
{ {

View file

@ -20,8 +20,8 @@ BOOLEAN KiTimeAdjustmentEnabled = FALSE;
/* FUNCTIONS ******************************************************************/ /* FUNCTIONS ******************************************************************/
VOID
FORCEINLINE FORCEINLINE
VOID
KiWriteSystemTime(volatile KSYSTEM_TIME *SystemTime, ULARGE_INTEGER NewTime) KiWriteSystemTime(volatile KSYSTEM_TIME *SystemTime, ULARGE_INTEGER NewTime)
{ {
#ifdef _WIN64 #ifdef _WIN64
@ -35,8 +35,8 @@ KiWriteSystemTime(volatile KSYSTEM_TIME *SystemTime, ULARGE_INTEGER NewTime)
#endif #endif
} }
VOID
FORCEINLINE FORCEINLINE
VOID
KiCheckForTimerExpiration( KiCheckForTimerExpiration(
PKPRCB Prcb, PKPRCB Prcb,
PKTRAP_FRAME TrapFrame, PKTRAP_FRAME TrapFrame,

View file

@ -731,8 +731,8 @@ extern ULONG_PTR MmSubsectionBase;
extern LARGE_INTEGER MmCriticalSectionTimeout; extern LARGE_INTEGER MmCriticalSectionTimeout;
extern LIST_ENTRY MmWorkingSetExpansionHead; extern LIST_ENTRY MmWorkingSetExpansionHead;
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsMemoryTypeFree(TYPE_OF_MEMORY MemoryType) MiIsMemoryTypeFree(TYPE_OF_MEMORY MemoryType)
{ {
return ((MemoryType == LoaderFree) || return ((MemoryType == LoaderFree) ||
@ -741,8 +741,8 @@ MiIsMemoryTypeFree(TYPE_OF_MEMORY MemoryType)
(MemoryType == LoaderOsloaderStack)); (MemoryType == LoaderOsloaderStack));
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsMemoryTypeInvisible(TYPE_OF_MEMORY MemoryType) MiIsMemoryTypeInvisible(TYPE_OF_MEMORY MemoryType)
{ {
return ((MemoryType == LoaderFirmwarePermanent) || return ((MemoryType == LoaderFirmwarePermanent) ||
@ -752,44 +752,44 @@ MiIsMemoryTypeInvisible(TYPE_OF_MEMORY MemoryType)
} }
#ifdef _M_AMD64 #ifdef _M_AMD64
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPxe(PVOID Address) MiIsUserPxe(PVOID Address)
{ {
return ((ULONG_PTR)Address >> 7) == 0x1FFFFEDF6FB7DA0ULL; return ((ULONG_PTR)Address >> 7) == 0x1FFFFEDF6FB7DA0ULL;
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPpe(PVOID Address) MiIsUserPpe(PVOID Address)
{ {
return ((ULONG_PTR)Address >> 16) == 0xFFFFF6FB7DA0ULL; return ((ULONG_PTR)Address >> 16) == 0xFFFFF6FB7DA0ULL;
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPde(PVOID Address) MiIsUserPde(PVOID Address)
{ {
return ((ULONG_PTR)Address >> 25) == 0x7FFFFB7DA0ULL; return ((ULONG_PTR)Address >> 25) == 0x7FFFFB7DA0ULL;
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPte(PVOID Address) MiIsUserPte(PVOID Address)
{ {
return ((ULONG_PTR)Address >> 34) == 0x3FFFFDA0ULL; return ((ULONG_PTR)Address >> 34) == 0x3FFFFDA0ULL;
} }
#else #else
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPde(PVOID Address) MiIsUserPde(PVOID Address)
{ {
return ((Address >= (PVOID)MiAddressToPde(NULL)) && return ((Address >= (PVOID)MiAddressToPde(NULL)) &&
(Address <= (PVOID)MiHighestUserPde)); (Address <= (PVOID)MiHighestUserPde));
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsUserPte(PVOID Address) MiIsUserPte(PVOID Address)
{ {
return (Address <= (PVOID)MiHighestUserPte); return (Address <= (PVOID)MiHighestUserPte);
@ -799,8 +799,8 @@ MiIsUserPte(PVOID Address)
// //
// Figures out the hardware bits for a PTE // Figures out the hardware bits for a PTE
// //
ULONG_PTR
FORCEINLINE FORCEINLINE
ULONG_PTR
MiDetermineUserGlobalPteMask(IN PVOID PointerPte) MiDetermineUserGlobalPteMask(IN PVOID PointerPte)
{ {
MMPTE TempPte; MMPTE TempPte;
@ -991,8 +991,8 @@ MI_IS_PHYSICAL_ADDRESS(IN PVOID Address)
// //
// Writes a valid PTE // Writes a valid PTE
// //
VOID
FORCEINLINE FORCEINLINE
VOID
MI_WRITE_VALID_PTE(IN PMMPTE PointerPte, MI_WRITE_VALID_PTE(IN PMMPTE PointerPte,
IN MMPTE TempPte) IN MMPTE TempPte)
{ {
@ -1005,8 +1005,8 @@ MI_WRITE_VALID_PTE(IN PMMPTE PointerPte,
// //
// Writes an invalid PTE // Writes an invalid PTE
// //
VOID
FORCEINLINE FORCEINLINE
VOID
MI_WRITE_INVALID_PTE(IN PMMPTE PointerPte, MI_WRITE_INVALID_PTE(IN PMMPTE PointerPte,
IN MMPTE InvalidPte) IN MMPTE InvalidPte)
{ {
@ -1018,8 +1018,8 @@ MI_WRITE_INVALID_PTE(IN PMMPTE PointerPte,
// //
// Writes a valid PDE // Writes a valid PDE
// //
VOID
FORCEINLINE FORCEINLINE
VOID
MI_WRITE_VALID_PDE(IN PMMPDE PointerPde, MI_WRITE_VALID_PDE(IN PMMPDE PointerPde,
IN MMPDE TempPde) IN MMPDE TempPde)
{ {
@ -1032,8 +1032,8 @@ MI_WRITE_VALID_PDE(IN PMMPDE PointerPde,
// //
// Writes an invalid PDE // Writes an invalid PDE
// //
VOID
FORCEINLINE FORCEINLINE
VOID
MI_WRITE_INVALID_PDE(IN PMMPDE PointerPde, MI_WRITE_INVALID_PDE(IN PMMPDE PointerPde,
IN MMPDE InvalidPde) IN MMPDE InvalidPde)
{ {
@ -1082,8 +1082,8 @@ MI_WS_OWNER(IN PEPROCESS Process)
// //
// New ARM3<->RosMM PAGE Architecture // New ARM3<->RosMM PAGE Architecture
// //
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiIsRosSectionObject(IN PVOID Section) MiIsRosSectionObject(IN PVOID Section)
{ {
PROS_SECTION_OBJECT RosSection = Section; PROS_SECTION_OBJECT RosSection = Section;
@ -2294,8 +2294,8 @@ MiMakePdeExistAndMakeValid(
// then we'd like to have our own code to grab a free page and zero it out, by // then we'd like to have our own code to grab a free page and zero it out, by
// using MiRemoveAnyPage. This macro implements this. // using MiRemoveAnyPage. This macro implements this.
// //
PFN_NUMBER
FORCEINLINE FORCEINLINE
PFN_NUMBER
MiRemoveZeroPageSafe(IN ULONG Color) MiRemoveZeroPageSafe(IN ULONG Color)
{ {
if (MmFreePagesByColor[ZeroedPageList][Color].Flink != LIST_HEAD) return MiRemoveZeroPage(Color); if (MmFreePagesByColor[ZeroedPageList][Color].Flink != LIST_HEAD) return MiRemoveZeroPage(Color);

View file

@ -28,8 +28,8 @@
#define PRTL_BALANCED_LINKS PMMADDRESS_NODE #define PRTL_BALANCED_LINKS PMMADDRESS_NODE
#define MI_ASSERT(x) ASSERT(x) #define MI_ASSERT(x) ASSERT(x)
VOID
FORCEINLINE FORCEINLINE
VOID
RtlpCopyAvlNodeData(IN PRTL_BALANCED_LINKS Node1, RtlpCopyAvlNodeData(IN PRTL_BALANCED_LINKS Node1,
IN PRTL_BALANCED_LINKS Node2) IN PRTL_BALANCED_LINKS Node2)
{ {
@ -38,8 +38,8 @@ RtlpCopyAvlNodeData(IN PRTL_BALANCED_LINKS Node1,
Node1->RightChild = Node2->RightChild; Node1->RightChild = Node2->RightChild;
} }
RTL_GENERIC_COMPARE_RESULTS
FORCEINLINE FORCEINLINE
RTL_GENERIC_COMPARE_RESULTS
RtlpAvlCompareRoutine(IN PRTL_AVL_TABLE Table, RtlpAvlCompareRoutine(IN PRTL_AVL_TABLE Table,
IN PVOID Buffer, IN PVOID Buffer,
IN PVOID UserData) IN PVOID UserData)
@ -60,73 +60,73 @@ RtlpAvlCompareRoutine(IN PRTL_AVL_TABLE Table,
} }
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlSetParent(IN PRTL_BALANCED_LINKS Node, RtlSetParent(IN PRTL_BALANCED_LINKS Node,
IN PRTL_BALANCED_LINKS Parent) IN PRTL_BALANCED_LINKS Parent)
{ {
Node->u1.Parent = (PRTL_BALANCED_LINKS)((ULONG_PTR)Parent | (Node->u1.Balance & 0x3)); Node->u1.Parent = (PRTL_BALANCED_LINKS)((ULONG_PTR)Parent | (Node->u1.Balance & 0x3));
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlSetBalance(IN PRTL_BALANCED_LINKS Node, RtlSetBalance(IN PRTL_BALANCED_LINKS Node,
IN SCHAR Balance) IN SCHAR Balance)
{ {
Node->u1.Balance = Balance; Node->u1.Balance = Balance;
} }
SCHAR
FORCEINLINE FORCEINLINE
SCHAR
RtlBalance(IN PRTL_BALANCED_LINKS Node) RtlBalance(IN PRTL_BALANCED_LINKS Node)
{ {
return (SCHAR)Node->u1.Balance; return (SCHAR)Node->u1.Balance;
} }
PRTL_BALANCED_LINKS
FORCEINLINE FORCEINLINE
PRTL_BALANCED_LINKS
RtlParentAvl(IN PRTL_BALANCED_LINKS Node) RtlParentAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return (PRTL_BALANCED_LINKS)((ULONG_PTR)Node->u1.Parent & ~3); return (PRTL_BALANCED_LINKS)((ULONG_PTR)Node->u1.Parent & ~3);
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
RtlIsRootAvl(IN PRTL_BALANCED_LINKS Node) RtlIsRootAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return (RtlParentAvl(Node) == Node); return (RtlParentAvl(Node) == Node);
} }
PRTL_BALANCED_LINKS
FORCEINLINE FORCEINLINE
PRTL_BALANCED_LINKS
RtlRightChildAvl(IN PRTL_BALANCED_LINKS Node) RtlRightChildAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return Node->RightChild; return Node->RightChild;
} }
PRTL_BALANCED_LINKS
FORCEINLINE FORCEINLINE
PRTL_BALANCED_LINKS
RtlLeftChildAvl(IN PRTL_BALANCED_LINKS Node) RtlLeftChildAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return Node->LeftChild; return Node->LeftChild;
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
RtlIsLeftChildAvl(IN PRTL_BALANCED_LINKS Node) RtlIsLeftChildAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return (RtlLeftChildAvl(RtlParentAvl(Node)) == Node); return (RtlLeftChildAvl(RtlParentAvl(Node)) == Node);
} }
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
RtlIsRightChildAvl(IN PRTL_BALANCED_LINKS Node) RtlIsRightChildAvl(IN PRTL_BALANCED_LINKS Node)
{ {
return (RtlRightChildAvl(RtlParentAvl(Node)) == Node); return (RtlRightChildAvl(RtlParentAvl(Node)) == Node);
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlInsertAsLeftChildAvl(IN PRTL_BALANCED_LINKS Parent, RtlInsertAsLeftChildAvl(IN PRTL_BALANCED_LINKS Parent,
IN PRTL_BALANCED_LINKS Node) IN PRTL_BALANCED_LINKS Node)
{ {
@ -134,8 +134,8 @@ RtlInsertAsLeftChildAvl(IN PRTL_BALANCED_LINKS Parent,
RtlSetParent(Node, Parent); RtlSetParent(Node, Parent);
} }
VOID
FORCEINLINE FORCEINLINE
VOID
RtlInsertAsRightChildAvl(IN PRTL_BALANCED_LINKS Parent, RtlInsertAsRightChildAvl(IN PRTL_BALANCED_LINKS Parent,
IN PRTL_BALANCED_LINKS Node) IN PRTL_BALANCED_LINKS Node)
{ {

View file

@ -311,8 +311,8 @@ MiCheckVirtualAddress(IN PVOID VirtualAddress,
} }
#if (_MI_PAGING_LEVELS == 2) #if (_MI_PAGING_LEVELS == 2)
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiSynchronizeSystemPde(PMMPDE PointerPde) MiSynchronizeSystemPde(PMMPDE PointerPde)
{ {
MMPDE SystemPde; MMPDE SystemPde;

View file

@ -98,8 +98,8 @@ MiUnProtectFreeNonPagedPool(IN PVOID VirtualAddress,
return UnprotectedPages ? TRUE : FALSE; return UnprotectedPages ? TRUE : FALSE;
} }
VOID
FORCEINLINE FORCEINLINE
VOID
MiProtectedPoolUnProtectLinks(IN PLIST_ENTRY Links, MiProtectedPoolUnProtectLinks(IN PLIST_ENTRY Links,
OUT PVOID* PoolFlink, OUT PVOID* PoolFlink,
OUT PVOID* PoolBlink) OUT PVOID* PoolBlink)
@ -133,8 +133,8 @@ MiProtectedPoolUnProtectLinks(IN PLIST_ENTRY Links,
} }
} }
VOID
FORCEINLINE FORCEINLINE
VOID
MiProtectedPoolProtectLinks(IN PVOID PoolFlink, MiProtectedPoolProtectLinks(IN PVOID PoolFlink,
IN PVOID PoolBlink) IN PVOID PoolBlink)
{ {

View file

@ -56,8 +56,8 @@ ULONG MmTotalSystemPtes;
// being released, which is then inserted in front of the recorded cluster. // being released, which is then inserted in front of the recorded cluster.
// //
ULONG
FORCEINLINE FORCEINLINE
ULONG
MI_GET_CLUSTER_SIZE(IN PMMPTE Pte) MI_GET_CLUSTER_SIZE(IN PMMPTE Pte)
{ {
// //

View file

@ -199,8 +199,8 @@ ProtectToPTE(ULONG flProtect)
} }
/* Taken from ARM3/pagfault.c */ /* Taken from ARM3/pagfault.c */
BOOLEAN
FORCEINLINE FORCEINLINE
BOOLEAN
MiSynchronizeSystemPde(PMMPDE PointerPde) MiSynchronizeSystemPde(PMMPDE PointerPde)
{ {
MMPDE SystemPde; MMPDE SystemPde;