From nobody Sat May 4 15:12:54 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514164027409166.05641334408335; Sun, 24 Dec 2017 17:07:07 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A898021CB87A2; Sun, 24 Dec 2017 17:02:12 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 197E222225C1A for ; Sun, 24 Dec 2017 17:02:10 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2017 17:07:02 -0800 Received: from jwang36-mobl2.ccr.corp.intel.com ([10.239.192.64]) by fmsmga006.fm.intel.com with ESMTP; 24 Dec 2017 17:07:01 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,452,1508828400"; d="scan'208";a="189773022" From: Jian J Wang To: edk2-devel@lists.01.org Date: Mon, 25 Dec 2017 09:06:56 +0800 Message-Id: <20171225010659.13428-2-jian.j.wang@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 In-Reply-To: <20171225010659.13428-1-jian.j.wang@intel.com> References: <20171225010659.13428-1-jian.j.wang@intel.com> Subject: [edk2] [PATCH 1/4] MdePkg/BaseLib.h: Coding style clean-up X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dandan Bi , Eric Dong , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Dandan Bi Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang --- MdePkg/Include/Library/BaseLib.h | 72 ++++++++++++++++++++----------------= ---- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/Base= Lib.h index 2b98af4cd1..f51079aeb1 100644 --- a/MdePkg/Include/Library/BaseLib.h +++ b/MdePkg/Include/Library/BaseLib.h @@ -6672,41 +6672,41 @@ typedef union { typedef struct { UINT16 PreviousTaskLink; UINT16 Reserved_2; - UINT32 ESP0; - UINT16 SS0; + UINT32 Esp0; + UINT16 Ss0; UINT16 Reserved_10; - UINT32 ESP1; - UINT16 SS1; + UINT32 Esp1; + UINT16 Ss1; UINT16 Reserved_18; - UINT32 ESP2; - UINT16 SS2; + UINT32 Esp2; + UINT16 Ss2; UINT16 Reserved_26; - UINT32 CR3; - UINT32 EIP; - UINT32 EFLAGS; - UINT32 EAX; - UINT32 ECX; - UINT32 EDX; - UINT32 EBX; - UINT32 ESP; - UINT32 EBP; - UINT32 ESI; - UINT32 EDI; - UINT16 ES; + UINT32 Cr3; + UINT32 Eip; + UINT32 Eflags; + UINT32 Eax; + UINT32 Ecx; + UINT32 Edx; + UINT32 Ebx; + UINT32 Esp; + UINT32 Ebp; + UINT32 Esi; + UINT32 Edi; + UINT16 Es; UINT16 Reserved_74; - UINT16 CS; + UINT16 Cs; UINT16 Reserved_78; - UINT16 SS; + UINT16 Ss; UINT16 Reserved_82; - UINT16 DS; + UINT16 Ds; UINT16 Reserved_86; - UINT16 FS; + UINT16 Fs; UINT16 Reserved_90; - UINT16 GS; + UINT16 Gs; UINT16 Reserved_94; UINT16 LDTSegmentSelector; UINT16 Reserved_98; - UINT16 T; + UINT16 Tflag; UINT16 IOMapBaseAddress; } IA32_TASK_STATE_SEGMENT; =20 @@ -6717,12 +6717,12 @@ typedef union { UINT32 BaseMid:8; ///< Base Address 23..16 UINT32 Type:4; ///< Type (1 0 B 1) UINT32 Reserved_43:1; ///< 0 - UINT32 DPL:2; ///< Descriptor Privilege Level - UINT32 P:1; ///< Segment Present + UINT32 Dpl:2; ///< Descriptor Privilege Level + UINT32 Present:1; ///< Segment Present UINT32 LimitHigh:4; ///< Segment Limit 19..16 - UINT32 AVL:1; ///< Available for use by system software + UINT32 Avl:1; ///< Available for use by system software UINT32 Reserved_52:2; ///< 0 0 - UINT32 G:1; ///< Granularity + UINT32 Granularity:1; ///< Granularity UINT32 BaseHigh:8; ///< Base Address 31..24 } Bits; UINT64 Uint64; @@ -6757,11 +6757,11 @@ typedef union { // typedef struct { UINT32 Reserved_0; - UINT64 RSP0; - UINT64 RSP1; - UINT64 RSP2; + UINT64 Rsp0; + UINT64 Rsp1; + UINT64 Rsp2; UINT64 Reserved_28; - UINT64 IST[7]; + UINT64 Ist[7]; UINT64 Reserved_92; UINT16 Reserved_100; UINT16 IOMapBaseAddress; @@ -6774,12 +6774,12 @@ typedef union { UINT32 BaseMidl:8; ///< Base Address 23..16 UINT32 Type:4; ///< Type (1 0 B 1) UINT32 Reserved_43:1; ///< 0 - UINT32 DPL:2; ///< Descriptor Privilege Level - UINT32 P:1; ///< Segment Present + UINT32 Dpl:2; ///< Descriptor Privilege Level + UINT32 Present:1; ///< Segment Present UINT32 LimitHigh:4; ///< Segment Limit 19..16 - UINT32 AVL:1; ///< Available for use by system software + UINT32 Avl:1; ///< Available for use by system software UINT32 Reserved_52:2; ///< 0 0 - UINT32 G:1; ///< Granularity + UINT32 Granularity:1; ///< Granularity UINT32 BaseMidh:8; ///< Base Address 31..24 UINT32 BaseHigh:32; ///< Base Address 63..32 UINT32 Reserved_96:32; ///< Reserved --=20 2.15.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sat May 4 15:12:54 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514164030485280.9850590025702; Sun, 24 Dec 2017 17:07:10 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 15A0B21CB87A6; Sun, 24 Dec 2017 17:02:13 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 58F8B222CB329 for ; Sun, 24 Dec 2017 17:02:11 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2017 17:07:04 -0800 Received: from jwang36-mobl2.ccr.corp.intel.com ([10.239.192.64]) by fmsmga006.fm.intel.com with ESMTP; 24 Dec 2017 17:07:02 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,452,1508828400"; d="scan'208";a="189773026" From: Jian J Wang To: edk2-devel@lists.01.org Date: Mon, 25 Dec 2017 09:06:57 +0800 Message-Id: <20171225010659.13428-3-jian.j.wang@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 In-Reply-To: <20171225010659.13428-1-jian.j.wang@intel.com> References: <20171225010659.13428-1-jian.j.wang@intel.com> Subject: [edk2] [PATCH 2/4] MdeModulePkg/Core: Coding style clean-up X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dandan Bi , Eric Dong , Star Zeng MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Dandan Bi Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang Reviewed-by: Dandan Bi Reviewed-by: Star Zeng --- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePk= g/Core/DxeIplPeim/X64/VirtualMemory.c index bbdfa2bb8e..d7a86c0d30 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -126,6 +126,11 @@ EnableExecuteDisableBit ( The function will check if page table entry should be splitted to smaller granularity. =20 + @param Address Physical memory address. + @param Size Size of the given physical memory. + @param StackBase Base address of stack. + @param StackSize Size of stack. + @retval TRUE Page table should be split. @retval FALSE Page table should not be split. **/ --=20 2.15.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sat May 4 15:12:54 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514164033350866.6341068472539; Sun, 24 Dec 2017 17:07:13 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 74DE621CB87AB; Sun, 24 Dec 2017 17:02:15 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 99A5621CB87A0 for ; Sun, 24 Dec 2017 17:02:12 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2017 17:07:05 -0800 Received: from jwang36-mobl2.ccr.corp.intel.com ([10.239.192.64]) by fmsmga006.fm.intel.com with ESMTP; 24 Dec 2017 17:07:04 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,452,1508828400"; d="scan'208";a="189773030" From: Jian J Wang To: edk2-devel@lists.01.org Date: Mon, 25 Dec 2017 09:06:58 +0800 Message-Id: <20171225010659.13428-4-jian.j.wang@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 In-Reply-To: <20171225010659.13428-1-jian.j.wang@intel.com> References: <20171225010659.13428-1-jian.j.wang@intel.com> Subject: [edk2] [PATCH 3/4] UefiCpuPkg/UefiCpuPkg.uni: Add missing string definition for new PCDs X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dandan Bi , Laszlo Ersek , Eric Dong MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Dandan Bi Cc: Eric Dong Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang --- UefiCpuPkg/UefiCpuPkg.uni | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index a7073b10c8..6fcfc6e7f2 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -230,5 +230,17 @@ = "Processor trace is enabled through set BIT44(CPU_FEATURE_PRO= C_TRACE) in PcdCpuFeaturesSetting.

\n" = "This PCD is ignored if CPU processor trace is disabled.
<= BR>\n" = "Default value is 0 which means single range output scheme wi= ll be used if CPU processor trace is enabled.
\n" - = "0 - Single Range output scheme.
\n" - = "1 - ToPA(Table of physical address) scheme.
\n" \ No newline at end of file + = "0 - Single Range output scheme.
\n" + = "1 - ToPA(Table of physical address) scheme.
\n" + +#STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuStackSwitchExceptionList_PROMPT #lan= guage en-US "Specify exception vectors which need switching stack." + +#STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuStackSwitchExceptionList_HELP #langu= age en-US "List of exception vectors which need switching stack.\n" + = "This PCD will only take into effect if PcdCpuStackGuard is enabl= ed.n" + = "By default exception #DD(8), #PF(14) are supported.n" + +#STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuKnownGoodStackSize_PROMPT #language = en-US "Specify size of good stack of exception which need switching stack." + +#STR_gUefiCpuPkgTokenSpaceGuid_PcdCpuKnownGoodStackSize_HELP #language en= -US "Size of good stack for an exception.\n" + = "This PCD will only take into effect if PcdCpuStackGuard is enabled.\n" + --=20 2.15.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sat May 4 15:12:54 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514164035947314.35353802558814; Sun, 24 Dec 2017 17:07:15 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D048D21CB87AE; Sun, 24 Dec 2017 17:02:15 -0800 (PST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2707D21CB87A8 for ; Sun, 24 Dec 2017 17:02:14 -0800 (PST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Dec 2017 17:07:06 -0800 Received: from jwang36-mobl2.ccr.corp.intel.com ([10.239.192.64]) by fmsmga006.fm.intel.com with ESMTP; 24 Dec 2017 17:07:05 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=jian.j.wang@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,452,1508828400"; d="scan'208";a="189773036" From: Jian J Wang To: edk2-devel@lists.01.org Date: Mon, 25 Dec 2017 09:06:59 +0800 Message-Id: <20171225010659.13428-5-jian.j.wang@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 In-Reply-To: <20171225010659.13428-1-jian.j.wang@intel.com> References: <20171225010659.13428-1-jian.j.wang@intel.com> Subject: [edk2] [PATCH 4/4] UefiCpuPkg: Update code to use new structure field names X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dandan Bi , Laszlo Ersek , Eric Dong MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Due to coding style fix of the structure definition in BaseLib.h, all code referencing those structure must be updated accordingly. Cc: Dandan Bi Cc: Eric Dong Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang Reviewed-by: Dandan Bi --- .../Ia32/ArchExceptionHandler.c | 24 +++++++++++-------= ---- .../X64/ArchExceptionHandler.c | 6 +++--- UefiCpuPkg/Library/MpInitLib/MpLib.c | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHa= ndler.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandl= er.c index 6ac8549839..4e89b0470f 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandler.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchExceptionHandler.c @@ -216,7 +216,7 @@ ArchSetupExcpetionStack ( TssDesc->Bits.BaseLow =3D (UINT16)TssBase; TssDesc->Bits.BaseMid =3D (UINT8)(TssBase >> 16); TssDesc->Bits.Type =3D IA32_GDT_TYPE_TSS; - TssDesc->Bits.P =3D 1; + TssDesc->Bits.Present =3D 1; TssDesc->Bits.LimitHigh =3D 0; TssDesc->Bits.BaseHigh =3D (UINT8)(TssBase >> 24); =20 @@ -240,7 +240,7 @@ ArchSetupExcpetionStack ( TssDesc->Bits.BaseLow =3D (UINT16)TssBase; TssDesc->Bits.BaseMid =3D (UINT8)(TssBase >> 16); TssDesc->Bits.Type =3D IA32_GDT_TYPE_TSS; - TssDesc->Bits.P =3D 1; + TssDesc->Bits.Present =3D 1; TssDesc->Bits.LimitHigh =3D 0; TssDesc->Bits.BaseHigh =3D (UINT8)(TssBase >> 24); =20 @@ -253,17 +253,17 @@ ArchSetupExcpetionStack ( continue; } =20 - Tss->EIP =3D (UINT32)(TemplateMap.ExceptionStart + Tss->Eip =3D (UINT32)(TemplateMap.ExceptionStart + Vector * TemplateMap.ExceptionStubHeaderSize); - Tss->EFLAGS =3D 0x2; - Tss->ESP =3D StackTop; - Tss->CR3 =3D AsmReadCr3 (); - Tss->ES =3D AsmReadEs (); - Tss->CS =3D AsmReadCs (); - Tss->SS =3D AsmReadSs (); - Tss->DS =3D AsmReadDs (); - Tss->FS =3D AsmReadFs (); - Tss->GS =3D AsmReadGs (); + Tss->Eflags =3D 0x2; + Tss->Esp =3D StackTop; + Tss->Cr3 =3D AsmReadCr3 (); + Tss->Es =3D AsmReadEs (); + Tss->Cs =3D AsmReadCs (); + Tss->Ss =3D AsmReadSs (); + Tss->Ds =3D AsmReadDs (); + Tss->Fs =3D AsmReadFs (); + Tss->Gs =3D AsmReadGs (); =20 StackTop -=3D StackSwitchData->Ia32.KnownGoodStackSize; =20 diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHan= dler.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler= .c index 1dcf4277de..4d52b4eb0e 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ArchExceptionHandler.c @@ -186,7 +186,7 @@ ArchSetupExcpetionStack ( // TssDesc =3D StackSwitchData->X64.ExceptionTssDesc; Tss =3D StackSwitchData->X64.ExceptionTss; - if (StackSwitchData->X64.StackSwitchExceptionNumber > ARRAY_SIZE (Tss->I= ST)) { + if (StackSwitchData->X64.StackSwitchExceptionNumber > ARRAY_SIZE (Tss->I= st)) { return EFI_INVALID_PARAMETER; } =20 @@ -221,7 +221,7 @@ ArchSetupExcpetionStack ( TssDesc->Bits.BaseLow =3D (UINT16)TssBase; TssDesc->Bits.BaseMidl =3D (UINT8)(TssBase >> 16); TssDesc->Bits.Type =3D IA32_GDT_TYPE_TSS; - TssDesc->Bits.P =3D 1; + TssDesc->Bits.Present =3D 1; TssDesc->Bits.LimitHigh =3D 0; TssDesc->Bits.BaseMidh =3D (UINT8)(TssBase >> 24); TssDesc->Bits.BaseHigh =3D (UINT32)(TssBase >> 32); @@ -236,7 +236,7 @@ ArchSetupExcpetionStack ( // // Fixup IST // - Tss->IST[Index] =3D StackTop; + Tss->Ist[Index] =3D StackTop; StackTop -=3D StackSwitchData->X64.KnownGoodStackSize; =20 // diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpIn= itLib/MpLib.c index 0c2058a7b0..da1a43c430 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -243,7 +243,7 @@ RestoreVolatileRegisters ( VolatileRegisters->Tr < VolatileRegisters->Gdtr.Limit) { Tss =3D (IA32_TSS_DESCRIPTOR *)(VolatileRegisters->Gdtr.Base + VolatileRegisters->Tr); - if (Tss->Bits.P =3D=3D 1) { + if (Tss->Bits.Present =3D=3D 1) { Tss->Bits.Type &=3D 0xD; // 1101 - Clear busy bit just in case AsmWriteTr (VolatileRegisters->Tr); } --=20 2.15.1.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel