mirror of https://github.com/acidanthera/audk.git
IntelFsp2Pkg: Fix GCC49/XCODE build failure
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1276
Fixed potentially uninitialized variable build failure
caused by commit: b1cc6f672f
Test: Verified on internal platform and boots successfully.
Cc: Jiewen Yao <Jiewen.yao@intel.com>
Cc: Desimone Nathaniel L <nathaniel.l.desimone@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
This commit is contained in:
parent
7db4034f9a
commit
901ae29dfe
|
@ -107,13 +107,12 @@ SecStartup (
|
|||
}
|
||||
IdtSize = sizeof (IdtTableInStack.IdtTable);
|
||||
} else {
|
||||
if (IdtDescriptor.Limit + 1 > sizeof (IdtTableInStack.IdtTable)) {
|
||||
IdtSize = IdtDescriptor.Limit + 1;
|
||||
if (IdtSize > sizeof (IdtTableInStack.IdtTable)) {
|
||||
//
|
||||
// ERROR: IDT table size from boot loader is larger than FSP can support, DeadLoop here!
|
||||
//
|
||||
CpuDeadLoop();
|
||||
} else {
|
||||
IdtSize = IdtDescriptor.Limit + 1;
|
||||
}
|
||||
CopyMem ((VOID *) (UINTN) &IdtTableInStack.IdtTable, (VOID *) IdtDescriptor.Base, IdtSize);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue