You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
728 B
32 lines
728 B
4 years ago
|
#include "BootMgfw.h"
|
||
|
|
||
4 years ago
|
CHAR8* gEfiCallerBaseName = "Voyager";
|
||
4 years ago
|
const UINT32 _gUefiDriverRevision = 0x200;
|
||
|
|
||
|
EFI_STATUS EFIAPI UefiUnload(
|
||
|
IN EFI_HANDLE ImageHandle
|
||
|
)
|
||
4 years ago
|
{ return EFI_SUCCESS; }
|
||
4 years ago
|
|
||
|
EFI_STATUS EFIAPI UefiMain
|
||
|
(
|
||
|
IN EFI_HANDLE ImageHandle,
|
||
|
IN EFI_SYSTEM_TABLE* SystemTable
|
||
|
)
|
||
|
{
|
||
4 years ago
|
EFI_STATUS Result;
|
||
4 years ago
|
EFI_DEVICE_PATH_PROTOCOL* BootMgfwPath;
|
||
4 years ago
|
|
||
4 years ago
|
if (EFI_ERROR((Result = RestoreBootMgfw())))
|
||
4 years ago
|
{
|
||
4 years ago
|
DBG_PRINT("unable to restore bootmgfw... reason -> %r\n", Result);
|
||
4 years ago
|
return Result;
|
||
4 years ago
|
}
|
||
|
|
||
4 years ago
|
if (EFI_ERROR((Result = InstallBootMgfwHooks(ImageHandle))))
|
||
4 years ago
|
{
|
||
4 years ago
|
DBG_PRINT("Failed to install bootmgfw hooks... reason -> %r\n", Result);
|
||
|
return Result;
|
||
4 years ago
|
}
|
||
|
return EFI_SUCCESS;
|
||
|
}
|