Add boundary check against APIC ID.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10757 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2010-07-30 09:09:24 +00:00
parent fd627b160d
commit 6c45642e2b
1 changed files with 2 additions and 0 deletions

View File

@ -1272,6 +1272,8 @@ SendInitSipiSipi (
UINT32 VectorNumber;
UINT32 DeliveryMode;
ASSERT (ApicID < MAX_CPU_NUMBER);
mExchangeInfo->ApFunction = ApFunction;
mExchangeInfo->ProcessorNumber[ApicID] = (UINT32) ProcessorNumber;