HalpWheaInitProcessorGenericSection

NTSTATUS __stdcall HalpWheaInitProcessorGenericSection(
        WHEA_ERROR_RECORD_SECTION_DESCRIPTOR *Descriptor,
        _WHEA_PROCESSOR_GENERIC_ERROR_SECTION *Section){
  unsigned __int64 v4; 
  NTSTATUS result; 
  memset((INT64)Descriptor, 0i64);
  Descriptor->SectionSeverity = WheaErrSevInformational;
  Descriptor->Revision.AsUSHORT = 768;
  Descriptor->SectionLength = 192;
  Descriptor->SectionType = PROCESSOR_GENERIC_ERROR_SECTION_GUID;
  memset((INT64)Section, 0i64);
  Section->InstructionSet = 2;
  v4 = Section->ValidBits.ValidBits | 0x43;
  Section->ValidBits.ValidBits = v4;
  Section->CPUVersion = (unsigned int)EAX(__cpuid(1, 0));
  result = 0;
  Section->ProcessorId = *((unsigned int *)KeGetCurrentPrcb() + 53);
  Section->ValidBits.ValidBits = v4 | 0x100;
  return result;
}

Referenced by:

No references.