Author: hbelusca Date: Mon Nov 11 15:34:18 2013 New Revision: 60940
URL: http://svn.reactos.org/svn/reactos?rev=60940&view=rev Log: [FAST486]: Put the inlined function in its proper file. No code changes.
Modified: branches/ntvdm/lib/fast486/common.h branches/ntvdm/lib/fast486/common.inl
Modified: branches/ntvdm/lib/fast486/common.h URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/common.h?rev=6... ============================================================================== --- branches/ntvdm/lib/fast486/common.h [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/common.h [iso-8859-1] Mon Nov 11 15:34:18 2013 @@ -163,22 +163,6 @@
/* INLINED FUNCTIONS **********************************************************/
-/* static */ FORCEINLINE -INT -Fast486GetCurrentPrivLevel(PFAST486_STATE State) -{ - if (State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE) - { - /* In protected mode, return the RPL of the CS */ - return GET_SEGMENT_RPL(State->SegmentRegs[FAST486_REG_CS].Selector); - } - else - { - /* Real mode is always in supervisor mode */ - return 0; - } -} - #include "common.inl"
#endif // _COMMON_H_
Modified: branches/ntvdm/lib/fast486/common.inl URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/lib/fast486/common.inl?rev... ============================================================================== --- branches/ntvdm/lib/fast486/common.inl [iso-8859-1] (original) +++ branches/ntvdm/lib/fast486/common.inl [iso-8859-1] Mon Nov 11 15:34:18 2013 @@ -24,6 +24,22 @@ /* PUBLIC FUNCTIONS ***********************************************************/
FORCEINLINE +INT +Fast486GetCurrentPrivLevel(PFAST486_STATE State) +{ + if (State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE) + { + /* In protected mode, return the RPL of the CS */ + return GET_SEGMENT_RPL(State->SegmentRegs[FAST486_REG_CS].Selector); + } + else + { + /* Real mode is always in supervisor mode */ + return 0; + } +} + +FORCEINLINE ULONG Fast486GetPageTableEntry(PFAST486_STATE State, ULONG VirtualAddress,