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

int __thiscall LtPeiLockMsr(_DWORD *this)
{
  int result; // eax
  unsigned __int8 v2; // [esp+Ch] [ebp-4h]

  v2 = 0; /*0xffe0699b*/
  __writemsr(0x2E7u, 1u); /*0xffe069a9*/
  result = (*(int (__cdecl **)(_DWORD, _DWORD, __int64 (*)(), _DWORD, _DWORD, _DWORD))(*(this + 4) + 8))( /*0xffe069b9*/
             *this,
             *(this + 4),
             LtPeiWriteMsr,
             v2,
             v2,
             v2);
  if ( result < 0 )
    return DebugPrint(0x80000000, "Error: Not able to Lock LT MSR.  Status: %r\n");
  return result; /*0xffe069bf*/
}