Newer
Older
AMI-Aptio-BIOS-Reversed / EarlyVideoPei / VgaModeEnable.c
@Ajax Dong Ajax Dong 2 days ago 286 bytes Init
int __thiscall VgaModeEnable(int *this)
{
  int v2; // ecx
  int result; // eax

  PciRegWrite(*(this + 15), 510525556, 0xFFFF);
  PciRegWrite(v2, 510525564, -16711936);
  result = VgaModeSetOffset((int)this, 0);
  if ( result )
    return VgaModeSetPitch(this) != 0;
  return result;
}