Expose system process object
Some checks failed
Builds / ExectOS (amd64, debug) (push) Failing after 30s
Builds / ExectOS (amd64, release) (push) Failing after 31s
Builds / ExectOS (i686, debug) (push) Failing after 30s
Builds / ExectOS (i686, release) (push) Failing after 33s

This commit is contained in:
2026-07-09 08:54:22 +02:00
parent 34acfe2b8b
commit 7db52a816f
3 changed files with 22 additions and 0 deletions

View File

@@ -64,3 +64,18 @@ PS::Process::GetCurrentProcess(VOID)
/* Return the current process */
return (PEPROCESS)KE::Processor::GetCurrentThread()->ApcState.Process;
}
/**
* Returns a pointer to the primary system process object.
*
* @return This routine returns a pointer to the system process object.
*
* @since XT 1.0
*/
XTFASTCALL
PEPROCESS
PS::Process::GetSystemProcess(VOID)
{
/* Return the system process */
return SystemProcess;
}