mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[FAST486]: Put the inlined function in its proper file. No code changes.
svn path=/branches/ntvdm/; revision=60940
This commit is contained in:
@@ -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_
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user