[FAST486]: Put the inlined function in its proper file. No code changes.

svn path=/branches/ntvdm/; revision=60940
This commit is contained in:
Hermès Bélusca-Maïto
2013-11-11 15:34:18 +00:00
parent 8389b692ea
commit 77930f2a21
2 changed files with 16 additions and 16 deletions
-16
View File
@@ -163,22 +163,6 @@ Fast486ExceptionWithErrorCode
/* 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_
+16
View File
@@ -23,6 +23,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,