From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web08.3170.1639990252361855206 for ; Mon, 20 Dec 2021 00:50:52 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=E54+liEd; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: jackx.lin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639990252; x=1671526252; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=FHm4LJwrWV54GvdXIfkHWReSKMOprYteqdypAOF2i00=; b=E54+liEdEABtHdu2nMQSHMC41dHw7TgU+77ai4p4wkLjnO3yD5BE01ME vZqa5kbfY/AIIfQ4WD+s1CKrPl9KhhmyGgKk/cFmQ79csF41ZIFD/lnUj v4xmzMBFnPrvrw+uZIScdTJfmICU+6HamnpA41vjKRmOmPwGEz/KIyxck Dr6lpRk4Gpe9vMfO56z83QFmPMXrWsImU0FYXX3KhUEh9fReALGBelB2s V0UafZDQMGh7/rqaHqAz+ZBS41CnJ9c2+uBsfCnwvy0r4qtPCIakElgGT XiNah/ioZ+bVzXQCwJLMEdX0/C3/BaCJ5GMjZon1qxJ4BBtQ+iZuvIdIC w==; X-IronPort-AV: E=McAfee;i="6200,9189,10203"; a="300898722" X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="300898722" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 00:50:51 -0800 X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="507610462" Received: from lins2x-desk1.gar.corp.intel.com ([10.225.33.149]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 00:50:49 -0800 From: "JackX Lin" To: devel@edk2.groups.io Cc: JackX Lin , JackX Lin , Chasel Chiu , Dong Eric , Jiewen Yao , Ray Ni , Rangasai V Chaganty , Donald Kuo , Chandana C Kumar Subject: [edk2-platforms: PATCH] REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3787 Date: Mon, 20 Dec 2021 16:50:32 +0800 Message-Id: <20211220085032.194-1-jackx.lin@intel.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Chasel Chiu Cc: Dong Eric Cc: Jiewen Yao Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Donald Kuo Cc: Chandana C Kumar Cc: JackX Lin --- Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c index 785cf4c2f9..e346d781db 100644 --- a/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c +++ b/Platform/Intel/MinPlatformPkg/Acpi/AcpiTables/AcpiPlatform.c @@ -231,9 +231,9 @@ SortCpuLocalApicInTable ( if (TempCpuApicIdOrderTable[0].ApicId != BspApicId) { for (Index = 0; Index < mNumberOfCpus; Index++) { if ((TempCpuApicIdOrderTable[Index].Flags == 1) && (TempCpuApicIdOrderTable[Index].ApicId == BspApicId)) { - CopyMem (&TempVal, &TempCpuApicIdOrderTable[Index], sizeof (EFI_CPU_ID_ORDER_MAP)); + CopyMem (TempVal, &TempCpuApicIdOrderTable[Index], sizeof (EFI_CPU_ID_ORDER_MAP)); CopyMem (&TempCpuApicIdOrderTable[Index], &TempCpuApicIdOrderTable[0], sizeof (EFI_CPU_ID_ORDER_MAP)); - CopyMem (&TempCpuApicIdOrderTable[0], &TempVal, sizeof (EFI_CPU_ID_ORDER_MAP)); + CopyMem (&TempCpuApicIdOrderTable[0], TempVal, sizeof (EFI_CPU_ID_ORDER_MAP)); break; } } -- 2.32.0.windows.2