mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
Add parameter checking for MP Services Protocol Thunk driver.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10147 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
ccf0f68d73
commit
45590862be
@ -899,6 +899,7 @@ CheckThisAP (
|
|||||||
CPU_STATE CpuState;
|
CPU_STATE CpuState;
|
||||||
|
|
||||||
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
||||||
|
ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
|
||||||
|
|
||||||
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
||||||
|
|
||||||
@ -1220,6 +1221,7 @@ WakeUpAp (
|
|||||||
EFI_PROCESSOR_INFORMATION ProcessorInfoBuffer;
|
EFI_PROCESSOR_INFORMATION ProcessorInfoBuffer;
|
||||||
|
|
||||||
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
||||||
|
ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
|
||||||
|
|
||||||
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
||||||
|
|
||||||
@ -1300,6 +1302,7 @@ ChangeCpuState (
|
|||||||
CPU_DATA_BLOCK *CpuData;
|
CPU_DATA_BLOCK *CpuData;
|
||||||
|
|
||||||
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
ASSERT (ProcessorNumber < mNumberOfProcessors);
|
||||||
|
ASSERT (ProcessorNumber < MAX_CPU_NUMBER);
|
||||||
|
|
||||||
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
CpuData = &mMPSystemData.CpuData[ProcessorNumber];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user