forked from xt-sys/exectos
Code formatting
This commit is contained in:
parent
5ec08cb84a
commit
0db01053ab
@ -66,8 +66,9 @@ BlLoadXtProtocol(OUT PVOID *ProtocolHandler,
|
|||||||
for(Index = 0; Index < Count; Index++)
|
for(Index = 0; Index < Count; Index++)
|
||||||
{
|
{
|
||||||
/* Try to open protocol */
|
/* Try to open protocol */
|
||||||
Status = EfiSystemTable->BootServices->OpenProtocol(Handles[Index], ProtocolGuid, ProtocolHandler,
|
Status = EfiSystemTable->BootServices->OpenProtocol(Handles[Index], ProtocolGuid,
|
||||||
EfiImageHandle, NULL, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
|
ProtocolHandler, EfiImageHandle, NULL,
|
||||||
|
EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL);
|
||||||
|
|
||||||
/* Check if successfully opened the loader protocol */
|
/* Check if successfully opened the loader protocol */
|
||||||
if(Status == STATUS_EFI_SUCCESS)
|
if(Status == STATUS_EFI_SUCCESS)
|
||||||
|
@ -552,5 +552,6 @@ BlXtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
XtPeCoffProtocol.Relocate = PeRelocateImage;
|
XtPeCoffProtocol.Relocate = PeRelocateImage;
|
||||||
|
|
||||||
/* Register PE/COFF protocol */
|
/* Register PE/COFF protocol */
|
||||||
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &XtPeCoffProtocol);
|
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE,
|
||||||
|
&XtPeCoffProtocol);
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,8 @@ BlLoadEfiModules()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Load the module into memory */
|
/* Load the module into memory */
|
||||||
Status = EfiSystemTable->BootServices->LoadImage(FALSE, EfiImageHandle, VolumeDevicePath, NULL, 0, &ModuleHandle);
|
Status = EfiSystemTable->BootServices->LoadImage(FALSE, EfiImageHandle, VolumeDevicePath,
|
||||||
|
NULL, 0, &ModuleHandle);
|
||||||
if(Status != STATUS_EFI_SUCCESS)
|
if(Status != STATUS_EFI_SUCCESS)
|
||||||
{
|
{
|
||||||
/* Module failed */
|
/* Module failed */
|
||||||
@ -326,7 +327,8 @@ BlRegisterXtLoaderProtocol()
|
|||||||
|
|
||||||
/* Register loader protocol */
|
/* Register loader protocol */
|
||||||
BlDbgPrint(L"Registering XT loader protocol\n");
|
BlDbgPrint(L"Registering XT loader protocol\n");
|
||||||
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE, &EfiLdrProtocol);
|
return EfiSystemTable->BootServices->InstallProtocolInterface(&Handle, &Guid, EFI_NATIVE_INTERFACE,
|
||||||
|
&EfiLdrProtocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user