Intel Extensible Firmware Interface Manuel d'utilisateur Page 93

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 108
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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;
Vue de la page 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 107 108

Commentaires sur ces manuels

Pas de commentaire