Add an ASSERT to make sure this thunk module can only be used together with a PI PEI core, as we
assume PeiServices Pointer Table can be located in a standard way defined in PI spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5955 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc8d93ca0c
commit
9d5eaca403
|
@ -78,6 +78,12 @@ InitPeim (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
//
|
||||||
|
// This thunk module can only be used together with a PI PEI core, as we
|
||||||
|
// assume PeiServices Pointer Table can be located in a standard way defined
|
||||||
|
// in PI spec.
|
||||||
|
//
|
||||||
|
ASSERT ((*PeiServices)->Hdr.Revision >= 0x00010000);
|
||||||
return (*PeiServices)->InstallPpi (PeiServices, &mPpiFrameworkLoadFile);
|
return (*PeiServices)->InstallPpi (PeiServices, &mPpiFrameworkLoadFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,12 @@ Returns:
|
||||||
{
|
{
|
||||||
VOID *Interface;
|
VOID *Interface;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
//
|
||||||
|
// This thunk module can only be used together with a PI PEI core, as we
|
||||||
|
// assume PeiServices Pointer Table can be located in a standard way defined
|
||||||
|
// in PI spec.
|
||||||
|
//
|
||||||
|
ASSERT ((*PeiServices)->Hdr.Revision >= 0x00010000);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make sure ReadOnlyVariable2ToReadOnlyVariable module is not present. If so, the call chain will form a
|
// Make sure ReadOnlyVariable2ToReadOnlyVariable module is not present. If so, the call chain will form a
|
||||||
|
|
Loading…
Reference in New Issue