Cleanup dummy module a bit #2
This commit is contained in:
parent
46ebe5c250
commit
490501763f
@ -7,21 +7,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <xtblapi.h>
|
#include <xtblapi.h>
|
||||||
|
#include <globals.h>
|
||||||
|
|
||||||
|
|
||||||
/* Dummy module information */
|
/* Dummy module information */
|
||||||
XTBL_MODINFO = L"Dummy XTLDR module";
|
XTBL_MODINFO = L"Dummy XTLDR module";
|
||||||
// XTBL_MODDEPS = {L"dummy2"};
|
// XTBL_MODDEPS = {L"dummy2"};
|
||||||
|
|
||||||
/* XTLDR protocol handler */
|
|
||||||
PXTBL_LOADER_PROTOCOL XtLdrProto;
|
|
||||||
|
|
||||||
/* Dummy Boot Protocol handler */
|
|
||||||
XTBL_BOOT_PROTOCOL DummyProtocol;
|
|
||||||
|
|
||||||
XTCDECL
|
XTCDECL
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
BootDummyOS(IN PXTBL_BOOT_PARAMETERS Parameters)
|
BlBootDummyOS(IN PXTBL_BOOT_PARAMETERS Parameters)
|
||||||
{
|
{
|
||||||
return STATUS_EFI_SUCCESS;
|
return STATUS_EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
@ -56,11 +51,11 @@ XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set boot protocol routines */
|
/* Set boot protocol routines */
|
||||||
DummyProtocol.BootSystem = BootDummyOS;
|
BlpDummyProtocol.BootSystem = BlBootDummyOS;
|
||||||
|
|
||||||
/* Register XTOS boot protocol */
|
/* Register XTOS boot protocol */
|
||||||
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, &DummyProtocol);
|
return XtLdrProto->Protocol.Register(&DummyGuid, &BlpDummyProtocol);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user