From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 CBF1A81EAA for ; Tue, 29 Nov 2016 23:07:00 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP; 29 Nov 2016 23:07:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,720,1473145200"; d="scan'208";a="37101110" Received: from mdkinney-mobl.amr.corp.intel.com ([10.254.72.205]) by orsmga005.jf.intel.com with ESMTP; 29 Nov 2016 23:07:00 -0800 From: Michael Kinney To: edk2-devel@lists.01.org Cc: Jiewen Yao , Jeff Fan , Feng Tian Date: Tue, 29 Nov 2016 23:06:55 -0800 Message-Id: <1480489617-17028-1-git-send-email-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.6.3.windows.1 Subject: [Patch 0/2] UefiCpuPkg/PiSmmCpuDxeSmm: Reduce use of PSD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Nov 2016 07:07:00 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=277 Remove MtrrBaseMaskPtr field from PSD and move MTRR to a global variable since all CPUs use the same MTRR settings. Reduce use of PSD to allow alternate SmmCpuFeaturesLib implementations to use their own PSD layouts. Cc: Jiewen Yao Cc: Jeff Fan Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney Michael Kinney (2): UefiCpuPkg/PiSmmCpuDxeSmm: Remove MTRRs from PSD structure UefiCpuPkg/PiSmmCpuDxeSmm: Remove PSD layout assumptions UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 3 ++ UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 3 ++ UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 3 ++ UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 33 ++++-------------- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 15 ++++---- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 26 -------------- UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/SmramSaveState.c | 40 +++++++++++++++++++++- 8 files changed, 64 insertions(+), 61 deletions(-) -- 2.6.3.windows.1