MmGetCurrentProcessorColor

UINT16 __stdcall MmGetCurrentProcessorColor(){
  return KeGetCurrentPrcb()->ParentNode->Affinity.Reserved[0];
}

Referenced by:

MiAddSecureEntry
MiInsertSharedCommitNode
MiMapViewOfDataSection
MiReserveUserMemory