XTLDR Rewrite #7
@ -7,21 +7,16 @@
|
||||
*/
|
||||
|
||||
#include <xtblapi.h>
|
||||
#include <globals.h>
|
||||
|
||||
|
||||
/* Dummy module information */
|
||||
XTBL_MODINFO = L"Dummy XTLDR module";
|
||||
// XTBL_MODDEPS = {L"dummy2"};
|
||||
|
||||
/* XTLDR protocol handler */
|
||||
PXTBL_LOADER_PROTOCOL XtLdrProto;
|
||||
|
||||
/* Dummy Boot Protocol handler */
|
||||
XTBL_BOOT_PROTOCOL DummyProtocol;
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BootDummyOS(IN PXTBL_BOOT_PARAMETERS Parameters)
|
||||
BlBootDummyOS(IN PXTBL_BOOT_PARAMETERS Parameters)
|
||||
{
|
||||
return STATUS_EFI_SUCCESS;
|
||||
}
|
||||
@ -56,11 +51,11 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
||||
}
|
||||
|
||||
/* Set boot protocol routines */
|
||||
DummyProtocol.BootSystem = BootDummyOS;
|
||||
BlpDummyProtocol.BootSystem = BlBootDummyOS;
|
||||
|
||||
/* Register XTOS boot protocol */
|
||||
XtLdrProto->Boot.RegisterProtocol(L"XTOS", &DummyGuid);
|
||||
|
||||
/* Register DUMMY protocol as XTOS boot protocol */
|
||||
return XtLdrProto->Protocol.Register(&DummyGuid, &DummyProtocol);
|
||||
return XtLdrProto->Protocol.Register(&DummyGuid, &BlpDummyProtocol);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user