Intel Extensible Firmware Interface Manual do Utilizador Página 93

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 108
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 92
EFI System Table
Version 1.10 12/01/02 4-15
//
// Use the EFI Runtime Services Table to get the current time and date.
//
Status = gRT->GetTime (&Time, NULL)
if (EFI_ERROR (Status)) {
return Status;
}
return Status;
}
The following example shows the EFI image entry point for an EFI Driver that does not follow the
EFI Driver Model. Since this driver returns EFI_SUCCESS, it will stay resident in memory after
it exits.
EFI_SYSTEM_TABLE *gST;
EFI_BOOT_SERVICES_TABLE *gBS;
EFI_RUNTIME_SERVICES_TABLE *gRT;
EfiDriverEntryPoint(
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
gST = SystemTable;
gBS = gST->BootServices;
gRT = gST->RuntimeServices;
//
// Implement driver initialization here.
//
return EFI_SUCCESS;
}
The following example shows the EFI image entry point for an EFI Driver that also does not follow
the EFI Driver Model. Since this driver returns EFI_DEVICE_ERROR, it will not stay resident in
memory after it exits.
EFI_SYSTEM_TABLE *gST;
EFI_BOOT_SERVICES_TABLE *gBS;
EFI_RUNTIME_SERVICES_TABLE *gRT;
EfiDriverEntryPoint(
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
gST = SystemTable;
gBS = gST->BootServices;
gRT = gST->RuntimeServices;
Vista de página 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 107 108

Comentários a estes Manuais

Sem comentários