Migrate HL subsystem to C++
This commit is contained in:
30
xtoskrnl/includes/hl/runlevel.hh
Normal file
30
xtoskrnl/includes/hl/runlevel.hh
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/hl/runlevel.hh
|
||||
* DESCRIPTION: Run Level management support
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_HL_RUNLEVEL_HH
|
||||
#define __XTOSKRNL_HL_RUNLEVEL_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Hardware Layer */
|
||||
namespace HL
|
||||
{
|
||||
class RunLevel
|
||||
{
|
||||
public:
|
||||
STATIC XTFASTCALL KRUNLEVEL GetRunLevel(VOID);
|
||||
STATIC XTFASTCALL VOID SetRunLevel(IN KRUNLEVEL RunLevel);
|
||||
|
||||
private:
|
||||
STATIC XTFASTCALL KRUNLEVEL TransformApicTprToRunLevel(IN UCHAR Tpr);
|
||||
STATIC XTFASTCALL UCHAR TransformRunLevelToApicTpr(IN KRUNLEVEL RunLevel);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_HL_RUNLEVEL_HH */
|
Reference in New Issue
Block a user