Newer
Older
AMI-Aptio-BIOS-Reversed / TxtPei / SetFeatureBit.c
@Ajax Dong Ajax Dong 2 days ago 606 bytes Init
// Decompiled: 0xffe07adb
// Function: SetFeatureBit
// Module: TxtPei.efi (TXTPEI)

int __thiscall SetFeatureBit(void *this)
{
  int v1; // ebx
  int v2; // eax

  v1 = CpuIdViaPeiService(this) + 1024064; /*0xffe07a24*/
  if ( (v1 & 1) != 0 ) /*0xffe07a29*/
  {
    v2 = DebugPrintProtocol(); /*0xffe07a2b*/
    if ( v2 ) /*0xffe07a32*/
      (*(void (__cdecl **)(const char *, int, const char *))(v2 + 4))( /*0xffe07a43*/
        "e:\\hs\\MdePkg\\Library\\BaseIoLibIntrinsic\\IoLib.c",
        183,
        "(Address & 1) == 0");
  }
  *(_WORD *)v1 = 1280; /*0xffe07a4e*/
  return 1280; /*0xffe07a52*/
}