[edk2-devel] [PATCH] UefiCpuPkg/CpuExceptionHandler: Add missing comma to exception name array

Laszlo Ersek lersek at redhat.com
Fri May 14 11:04:58 UTC 2021


On 05/13/21 17:26, Lendacky, Thomas wrote:
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3373
> 
> An update to expand the mExceptionNameStr array failed to add a comma
> after original last entry, therefore causing the #CP name to have extra
> incorrect characters and the remaining entries to be indexed incorrectly
> (off by 1).
> 
> Add a comma after the "#CP" entry to resolve this issue.
> 
> Fixes: 5277540e37e88a1a69f9517c4ad895051b4b3ed3
> Cc: Allen Wynn <Allen_Wynn at Dell.com>
> Cc: Eric Dong <eric.dong at intel.com>
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Laszlo Ersek <lersek at redhat.com>
> Cc: Rahul Kumar <rahul1.kumar at intel.com>
> Signed-off-by: Tom Lendacky <thomas.lendacky at amd.com>
> ---
>  UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
> index c9003b10e552..49d0041e2ff3 100644
> --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
> +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.c
> @@ -44,7 +44,7 @@ CONST CHAR8 *mExceptionNameStr[] = {
>    "#MC - Machine-Check",
>    "#XM - SIMD floating-point",
>    "#VE - Virtualization",
> -  "#CP - Control Protection"
> +  "#CP - Control Protection",
>    "Reserved",
>    "Reserved",
>    "Reserved",
> 

Reviewed-by: Laszlo Ersek <lersek at redhat.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75114): https://edk2.groups.io/g/devel/message/75114
Mute This Topic: https://groups.io/mt/82801916/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list