Migrate EX subsystem to C++
This commit is contained in:
16
xtoskrnl/includes/ex.hh
Normal file
16
xtoskrnl/includes/ex.hh
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/ex.hh
|
||||
* DESCRIPTION:
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_EX_HH
|
||||
#define __XTOSKRNL_EX_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
#include <ex/rundown.hh>
|
||||
|
||||
#endif /* __XTOSKRNL_EX_HH */
|
30
xtoskrnl/includes/ex/rundown.hh
Normal file
30
xtoskrnl/includes/ex/rundown.hh
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/ex/rundown.hh
|
||||
* DESCRIPTION: Rundown protection mechanism
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_EX_RUNDOWN_HH
|
||||
#define __XTOSKRNL_EX_RUNDOWN_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Architecture-specific Library */
|
||||
namespace EX
|
||||
{
|
||||
class Rundown
|
||||
{
|
||||
public:
|
||||
STATIC XTFASTCALL BOOLEAN AcquireProtection(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
STATIC XTFASTCALL VOID CompleteProtection(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
STATIC XTFASTCALL VOID InitializeProtection(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
STATIC XTFASTCALL VOID ReInitializeProtection(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
STATIC XTFASTCALL VOID ReleaseProtection(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
STATIC XTFASTCALL VOID WaitForProtectionRelease(IN PEX_RUNDOWN_REFERENCE Descriptor);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_EX_RUNDOWN_HH */
|
@@ -27,3 +27,4 @@ extern "C" {
|
||||
|
||||
|
||||
#include <ar.hh>
|
||||
#include <ex.hh>
|
||||
|
Reference in New Issue
Block a user