diff --git a/xtoskrnl/hl/x86/cpu.cc b/xtoskrnl/hl/x86/cpu.cc index fca616c..0054433 100644 --- a/xtoskrnl/hl/x86/cpu.cc +++ b/xtoskrnl/hl/x86/cpu.cc @@ -9,6 +9,21 @@ #include +/** + * 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. * diff --git a/xtoskrnl/includes/hl/cpu.hh b/xtoskrnl/includes/hl/cpu.hh index 1587f35..1b80a2d 100644 --- a/xtoskrnl/includes/hl/cpu.hh +++ b/xtoskrnl/includes/hl/cpu.hh @@ -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);