HalpWheaInitProcessorGenericSection

NTSTATUS __stdcall HalpWheaInitProcessorGenericSection(
        _WHEA_ERROR_RECORD_SECTION_DESCRIPTOR *Descriptor,
        _WHEA_PROCESSOR_GENERIC_ERROR_SECTION *Section){
  unsigned __int64 v4; 
  NTSTATUS result; 

  memset(Descriptor, 0i64, sizeof(_WHEA_ERROR_RECORD_SECTION_DESCRIPTOR));
  Descriptor->SectionSeverity = WheaErrSevInformational;
  Descriptor->Revision.AsUSHORT = 768;
  Descriptor->SectionLength = 192;
  Descriptor->SectionType = PROCESSOR_GENERIC_ERROR_SECTION_GUID;
  memset(Section, 0i64, sizeof(_WHEA_PROCESSOR_GENERIC_ERROR_SECTION));
  Section->InstructionSet = 2;
  v4 = Section->ValidBits.ValidBits | 0x43;
  Section->ValidBits.ValidBits = v4;
  Section->CPUVersion = (unsigned int)EAX(__cpuid(1, 0));
  result = 0;
  Section->ProcessorId = KeGetCurrentPrcb()->InitialApicId;
  Section->ValidBits.ValidBits = v4 | 0x100;
  return result;
}

Referenced by:

No references.