Rename Protocol->Register() to Protocol->Install()
Some checks failed
Builds / ExectOS (amd64) (push) Failing after 16s
Builds / ExectOS (i686) (push) Failing after 14s

This commit is contained in:
Rafal Kupiec 2024-01-07 20:54:59 +01:00
parent 5106ed7bdc
commit 7fd5273476
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
7 changed files with 17 additions and 17 deletions

View File

@ -204,7 +204,7 @@ BlRegisterBootProtocol(IN PWCHAR SystemType,
XTCDECL XTCDECL
EFI_STATUS EFI_STATUS
BlRegisterProtocol(IN PEFI_GUID Guid, BlInstallProtocol(IN PEFI_GUID Guid,
IN PVOID Interface); IN PVOID Interface);
XTCDECL XTCDECL
@ -345,6 +345,10 @@ BlpInitializeSerialPort(IN ULONG PortNumber,
IN ULONG PortAddress, IN ULONG PortAddress,
IN ULONG BaudRate); IN ULONG BaudRate);
XTCDECL
EFI_STATUS
BlpInstallXtLoaderProtocol();
XTCDECL XTCDECL
EFI_STATUS EFI_STATUS
BlpLoadConfiguration(); BlpLoadConfiguration();
@ -368,10 +372,6 @@ BlpReadConfigFile(IN CONST PWCHAR ConfigDirectory,
IN CONST PWCHAR ConfigFile, IN CONST PWCHAR ConfigFile,
OUT PCHAR *ConfigData); OUT PCHAR *ConfigData);
XTCDECL
EFI_STATUS
BlpRegisterXtLoaderProtocol();
XTCDECL XTCDECL
VOID VOID
BlpStringFormat(IN BLPRINTCHAR PrintCharRoutine, BlpStringFormat(IN BLPRINTCHAR PrintCharRoutine,

View File

@ -56,5 +56,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
XtLdrProto->Boot.RegisterProtocol(L"XTOS", &DummyGuid); XtLdrProto->Boot.RegisterProtocol(L"XTOS", &DummyGuid);
/* Register DUMMY protocol as XTOS boot protocol */ /* Register DUMMY protocol as XTOS boot protocol */
return XtLdrProto->Protocol.Register(&DummyGuid, &BlpDummyProtocol); return XtLdrProto->Protocol.Install(&DummyGuid, &BlpDummyProtocol);
} }

View File

@ -251,5 +251,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
XtFramebufferProtocol.PrintDisplayInformation = FbPrintDisplayInformation; XtFramebufferProtocol.PrintDisplayInformation = FbPrintDisplayInformation;
/* Register XTOS boot protocol */ /* Register XTOS boot protocol */
return XtLdrProtocol->Protocol.Register(&Guid, &XtFramebufferProtocol); return XtLdrProtocol->Protocol.Install(&Guid, &XtFramebufferProtocol);
} }

View File

@ -603,5 +603,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
XtPeCoffProtocol.RelocateImage = PeRelocateImage; XtPeCoffProtocol.RelocateImage = PeRelocateImage;
/* Register PE/COFF protocol */ /* Register PE/COFF protocol */
return XtLdrProtocol->Protocol.Register(&Guid, &XtPeCoffProtocol); return XtLdrProtocol->Protocol.Install(&Guid, &XtPeCoffProtocol);
} }

View File

@ -542,5 +542,5 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
XtLdrProtocol->Boot.RegisterProtocol(L"XTOS", &Guid); XtLdrProtocol->Boot.RegisterProtocol(L"XTOS", &Guid);
/* Install XTOS protocol */ /* Install XTOS protocol */
return XtLdrProtocol->Protocol.Register(&Guid, &XtBootProtocol); return XtLdrProtocol->Protocol.Install(&Guid, &XtBootProtocol);
} }

View File

@ -506,7 +506,7 @@ BlRegisterBootProtocol(IN PWCHAR SystemType,
*/ */
XTCDECL XTCDECL
EFI_STATUS EFI_STATUS
BlRegisterProtocol(IN PEFI_GUID Guid, BlInstallProtocol(IN PEFI_GUID Guid,
IN PVOID Interface) IN PVOID Interface)
{ {
EFI_HANDLE Handle = NULL; EFI_HANDLE Handle = NULL;
@ -516,7 +516,7 @@ BlRegisterProtocol(IN PEFI_GUID Guid,
} }
/** /**
* This routine registers XTLDR protocol for further usage by modules. * This routine installs XTLDR protocol for further usage by modules.
* *
* @return This routine returns a status code. * @return This routine returns a status code.
* *
@ -524,7 +524,7 @@ BlRegisterProtocol(IN PEFI_GUID Guid,
*/ */
XTCDECL XTCDECL
EFI_STATUS EFI_STATUS
BlpRegisterXtLoaderProtocol() BlpInstallXtLoaderProtocol()
{ {
EFI_GUID Guid = XT_BOOT_LOADER_PROTOCOL_GUID; EFI_GUID Guid = XT_BOOT_LOADER_PROTOCOL_GUID;
@ -556,7 +556,7 @@ BlpRegisterXtLoaderProtocol()
BlpLdrProtocol.Memory.GetMemoryMap = BlGetMemoryMap; BlpLdrProtocol.Memory.GetMemoryMap = BlGetMemoryMap;
BlpLdrProtocol.Protocol.GetModulesList = BlGetModulesList; BlpLdrProtocol.Protocol.GetModulesList = BlGetModulesList;
BlpLdrProtocol.Protocol.Open = BlOpenProtocol; BlpLdrProtocol.Protocol.Open = BlOpenProtocol;
BlpLdrProtocol.Protocol.Register = BlRegisterProtocol; BlpLdrProtocol.Protocol.Install = BlInstallProtocol;
BlpLdrProtocol.Tui.DisplayErrorDialog = BlDisplayErrorDialog; BlpLdrProtocol.Tui.DisplayErrorDialog = BlDisplayErrorDialog;
BlpLdrProtocol.Tui.DisplayInfoDialog = BlDisplayInfoDialog; BlpLdrProtocol.Tui.DisplayInfoDialog = BlDisplayInfoDialog;
BlpLdrProtocol.Tui.DisplayInputDialog = BlDisplayInputDialog; BlpLdrProtocol.Tui.DisplayInputDialog = BlDisplayInputDialog;
@ -569,5 +569,5 @@ BlpRegisterXtLoaderProtocol()
/* Register XTLDR loader protocol */ /* Register XTLDR loader protocol */
BlDebugPrint(L"Registering XT loader protocol\n"); BlDebugPrint(L"Registering XT loader protocol\n");
return BlRegisterProtocol(&Guid, &BlpLdrProtocol); return BlInstallProtocol(&Guid, &BlpLdrProtocol);
} }

View File

@ -347,12 +347,12 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlDebugPrint(L"WARNING: Failed to disable watchdog timer (Status Code: 0x%lx)\n", Status); BlDebugPrint(L"WARNING: Failed to disable watchdog timer (Status Code: 0x%lx)\n", Status);
} }
/* Register loader protocol */ /* Install loader protocol */
Status = BlpRegisterXtLoaderProtocol(); Status = BlpInstallXtLoaderProtocol();
if(Status != STATUS_EFI_SUCCESS) if(Status != STATUS_EFI_SUCCESS)
{ {
/* Failed to register loader protocol */ /* Failed to register loader protocol */
BlDebugPrint(L"ERROR: Failed to register XTLDR boot protocol (Status Code: 0x%lx)\n", Status); BlDebugPrint(L"ERROR: Failed to register XTLDR loader protocol (Status Code: 0x%lx)\n", Status);
return Status; return Status;
} }