Introduce PS subsystem with IDLE process and thread creation
This commit is contained in:
18
xtoskrnl/includes/ps.hh
Normal file
18
xtoskrnl/includes/ps.hh
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/ps.hh
|
||||
* DESCRIPTION: Process and thread management
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_PS_HH
|
||||
#define __XTOSKRNL_PS_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
#include <ps/process.hh>
|
||||
#include <ps/thread.hh>
|
||||
|
||||
|
||||
#endif /* __XTOSKRNL_PS_HH */
|
||||
25
xtoskrnl/includes/ps/process.hh
Normal file
25
xtoskrnl/includes/ps/process.hh
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/ps/process.hh
|
||||
* DESCRIPTION: Process Management
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_PS_PROCESS_HH
|
||||
#define __XTOSKRNL_PS_PROCESS_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Process and thread management */
|
||||
namespace PS
|
||||
{
|
||||
class Process
|
||||
{
|
||||
public:
|
||||
STATIC XTAPI VOID CreateIdleProcess(IN PKPROCESSOR_CONTROL_BLOCK Prcb);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_PS_PROCESS_HH */
|
||||
26
xtoskrnl/includes/ps/thread.hh
Normal file
26
xtoskrnl/includes/ps/thread.hh
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/includes/ps/thread.hh
|
||||
* DESCRIPTION: Thread Management
|
||||
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef __XTOSKRNL_PS_THREAD_HH
|
||||
#define __XTOSKRNL_PS_THREAD_HH
|
||||
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/* Process and thread management */
|
||||
namespace PS
|
||||
{
|
||||
class Thread
|
||||
{
|
||||
public:
|
||||
STATIC XTAPI XTSTATUS CreateIdleThread(IN PKPROCESSOR_CONTROL_BLOCK Prcb,
|
||||
IN PVOID Stack);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* __XTOSKRNL_PS_THREAD_HH */
|
||||
@@ -24,4 +24,5 @@
|
||||
#include <ke.hh>
|
||||
#include <mm.hh>
|
||||
#include <po.hh>
|
||||
#include <ps.hh>
|
||||
#include <rtl.hh>
|
||||
|
||||
Reference in New Issue
Block a user