Add in support for GetNextTokenNumber API.
Use PCD_TOKEN_NUMBER as type for parameter of internal APIs. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@312 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -62,10 +62,12 @@ PeiRegisterCallBackWorker (
|
||||
ASSERT (GuidHob != NULL);
|
||||
|
||||
CallbackTable = GET_GUID_HOB_DATA (GuidHob);
|
||||
CallbackTable = CallbackTable + (TokenNumber * FixedPcdGet32(PcdMaxPeiPcdCallBackNumberPerPcdEntry));
|
||||
|
||||
Compare = Register? NULL: CallBackFunction;
|
||||
Assign = Register? CallBackFunction: NULL;
|
||||
|
||||
|
||||
for (Idx = 0; Idx < FixedPcdGet32(PcdMaxPeiPcdCallBackNumberPerPcdEntry); Idx++) {
|
||||
if (CallbackTable[Idx] == Compare) {
|
||||
CallbackTable[Idx] = Assign;
|
||||
|
Reference in New Issue
Block a user