Newer
Older
AMI-Aptio-BIOS-Reversed / AmiModulePkg / Terminal / SerialMuxControl / SerialMuxControl.c
/** @file
  SerialMuxControl.c -- SerialMuxControl

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "SerialMuxControl.h"


// Function: ModuleEntryPoint
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
  ::ImageHandle = (__int64)ImageHandle;
  if ( !ImageHandle )
    ValidateUefiEntryPointState(
      "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
      51,
      "gImageHandle != ((void *) 0)");
  ::SystemTable = (__int64)SystemTable;
  if ( !SystemTable )
    ValidateUefiEntryPointState(
      "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
      57,
      "gST != ((void *) 0)");
  BootServices = (__int64)SystemTable->BootServices;
  if ( !BootServices )
    ValidateUefiEntryPointState(
      "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
      63,
      "gBS != ((void *) 0)");
  RuntimeServices = (__int64)SystemTable->RuntimeServices;
  if ( !RuntimeServices )
    ValidateUefiEntryPointState(
      "e:\\hs\\MdePkg\\Library\\UefiRuntimeServicesTableLib\\UefiRuntimeServicesTableLib.c",
      47,
      "gRT != ((void *) 0)");
  SerialMuxControlInitializeHardware();
  return SerialMuxControlMain();
}