diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c index ee989bf079..d4e9979c92 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c @@ -24,7 +24,7 @@ EXCEPTION_HANDLER_DATA mExceptionHandlerData = { }; UINT8 mBuffer[CPU_STACK_SWITCH_EXCEPTION_NUMBER * CPU_KNOWN_GOOD_STACK_SIZE - + CPU_TSS_GDT_SIZE]; + + sizeof (IA32_TSS_DESCRIPTOR) + CPU_TSS_GDT_SIZE]; /** Common exception handler.