[edk2-devel] [edk2-platforms: PATCH] System will occur a CPU exception error when sorting CPU APIC map, because of a pointer point to an wrong space.

Kumar, Chandana C chandana.c.kumar at intel.com
Tue Dec 21 16:33:13 UTC 2021


Reviewed-by: Chandana C Kumar <chandana.c.kumar at intel.com>

> -----Original Message-----
> From: Lin, JackX <jackx.lin at intel.com>
> Sent: Tuesday, December 21, 2021 12:18 PM
> To: devel at edk2.groups.io
> Cc: Lin, JackX <jackx.lin at intel.com>; Lin, JackX <jackx.lin at intel.com>; Chiu,
> Chasel <chasel.chiu at intel.com>; Dong, Eric <eric.dong at intel.com>; Yao, Jiewen
> <jiewen.yao at intel.com>; Ni, Ray <ray.ni at intel.com>; Chaganty, Rangasai V
> <rangasai.v.chaganty at intel.com>; Kuo, Donald <donald.kuo at intel.com>; Kumar,
> Chandana C <chandana.c.kumar at intel.com>
> Subject: [edk2-platforms: PATCH] System will occur a CPU exception error when
> sorting CPU APIC map, because of a pointer point to an wrong space.
> 
> Signed-off-by: JackX Lin <JackX.Lin at intel.com>
> Cc: Chasel Chiu <chasel.chiu at intel.com>
> Cc: Dong Eric <eric.dong at intel.com>
> Cc: Jiewen Yao <jiewen.yao at intel.com>
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Rangasai V Chaganty <rangasai.v.chaganty at intel.com>
> Cc: Donald Kuo <Donald.Kuo at intel.com>
> Cc: Chandana C Kumar <chandana.c.kumar at intel.com>
> Cc: JackX Lin <JackX.Lin at intel.com>
> ---
>  Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c
> b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c
> index 785cf4c2f9..05fc7799fb 100644
> --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c
> +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c
> @@ -169,7 +169,7 @@ SortCpuLocalApicInTable (
>    UINT32                                    Index;
>    UINT32                                    CurrProcessor;
>    UINT32                                    BspApicId;
> -  EFI_CPU_ID_ORDER_MAP                      *TempVal;
> +  EFI_CPU_ID_ORDER_MAP                      TempVal;
>    EFI_CPU_ID_ORDER_MAP                      *CpuIdMapPtr;
>    UINT32                                    CoreThreadMask;
>    EFI_CPU_ID_ORDER_MAP                      *TempCpuApicIdOrderTable;
> @@ -183,7 +183,6 @@ SortCpuLocalApicInTable (
>    }
> 
>    TempCpuApicIdOrderTable = AllocateZeroPool (mNumberOfCpus * sizeof
> (EFI_CPU_ID_ORDER_MAP));
> -  TempVal = AllocateZeroPool (sizeof (EFI_CPU_ID_ORDER_MAP));
>    CoreThreadMask = (UINT32) ((1 << mNumOfBitShift) - 1);
> 
>    for (CurrProcessor = 0, Index = 0; CurrProcessor < mNumberOfCpus;
> CurrProcessor++, Index++) {
> --
> 2.32.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#85138): https://edk2.groups.io/g/devel/message/85138
Mute This Topic: https://groups.io/mt/87872992/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