Finish spliting SecDispatchTableLib into two functions so it can be a BaseLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10895 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -544,6 +544,7 @@ Returns:
|
||||
EFI_SEC_PEI_HAND_OFF *SecCoreData;
|
||||
UINTN PeiStackSize;
|
||||
EFI_PEI_PPI_DESCRIPTOR *DispatchTable;
|
||||
UINTN DispatchTableSize;
|
||||
|
||||
//
|
||||
// Compute Top Of Memory for Stack and PEI Core Allocations
|
||||
@@ -597,11 +598,19 @@ Returns:
|
||||
return ;
|
||||
}
|
||||
|
||||
DispatchTableSize = sizeof (gPrivateDispatchTable);
|
||||
DispatchTableSize += OverrideDispatchTableExtraSize ();
|
||||
|
||||
DispatchTable = malloc (DispatchTableSize);
|
||||
if (DispatchTable == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Allow an override for extra PPIs to be passed up to PEI
|
||||
// This is an easy way to enable OS specific customizations
|
||||
//
|
||||
DispatchTable = OverrideDispatchTable (&gPrivateDispatchTable[0]);
|
||||
OverrideDispatchTable (&gPrivateDispatchTable[0], sizeof (gPrivateDispatchTable), DispatchTable, DispatchTableSize);
|
||||
|
||||
//
|
||||
// Transfer control to the PEI Core
|
||||
|
Reference in New Issue
Block a user