summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-30 09:09:24 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2010-07-30 09:09:24 +0000
commit6c45642e2bd4cec95c9cde14668ea36c270f0559 (patch)
tree3401ab7b1776c332573ca99c7ccb8021d2884199
parentfd627b160d0b5b91ee3e8af1aecea0d23a58332f (diff)
downloadedk2-6c45642e2bd4cec95c9cde14668ea36c270f0559.zip
edk2-6c45642e2bd4cec95c9cde14668ea36c270f0559.tar.gz
edk2-6c45642e2bd4cec95c9cde14668ea36c270f0559.tar.bz2
Add boundary check against APIC ID.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10757 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c
index 479362d..c423ec9 100644
--- a/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c
+++ b/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/MpServicesOnFrameworkMpServicesThunk.c
@@ -1272,6 +1272,8 @@ SendInitSipiSipi (
UINT32 VectorNumber;
UINT32 DeliveryMode;
+ ASSERT (ApicID < MAX_CPU_NUMBER);
+
mExchangeInfo->ApFunction = ApFunction;
mExchangeInfo->ProcessorNumber[ApicID] = (UINT32) ProcessorNumber;