diff --git a/lib/fast486/common.h b/lib/fast486/common.h index a6c05f1249c..76ec3f42d11 100644 --- a/lib/fast486/common.h +++ b/lib/fast486/common.h @@ -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_ diff --git a/lib/fast486/common.inl b/lib/fast486/common.inl index a45c244cd87..38dadbf00c3 100644 --- a/lib/fast486/common.inl +++ b/lib/fast486/common.inl @@ -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,