Lifecycle management of threads #29

Merged
harraiken merged 240 commits from threads into master 2026-09-07 13:45:09 +02:00
2 changed files with 16 additions and 0 deletions
Showing only changes of commit 06291d2525 - Show all commits

View File

@@ -9,6 +9,21 @@
#include <xtos.hh>
/**
* Retrieves the system-wide active processor affinity map.
*
* @return This routine returns a pointer to the KAFFINITY_MAP structure representing the active processors.
*
* @since XT 1.0
*/
XTAPI
PKAFFINITY_MAP
HL::Cpu::GetActiveProcessors(VOID)
{
/* Return active processors map */
return ActiveProcessors;
}
/**
* Initializes the processor.
*

View File

@@ -21,6 +21,7 @@ namespace HL
STATIC PKAFFINITY_MAP ActiveProcessors;
public:
STATIC XTAPI PKAFFINITY_MAP GetActiveProcessors(VOID);
STATIC XTAPI VOID InitializeProcessor(VOID);
STATIC XTAPI XTSTATUS InitializeProcessorAffinity(VOID);
STATIC XTAPI XTSTATUS StartAllProcessors(VOID);