UefiCpuPkg/PiSmmCpuDxeSmm: Rename PiSmmCpuDxeSmm.h to PiSmmCpuCommon.h
Rename the file PiSmmCpuDxeSmm.h to PiSmmCpuCommon.h to facilitate common usage in both SMM and MM. The renamed file PiSmmCpuCommon.h will be utilized for both modes in subsequent patches. No function impact. Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Dun Tan <dun.tan@intel.com> Cc: Hongbin1 Zhang <hongbin1.zhang@intel.com> Cc: Wei6 Xu <wei6.xu@intel.com> Cc: Yuanhao Xie <yuanhao.xie@intel.com>
This commit is contained in:
parent
2a15750b79
commit
cd29383f77
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
#include <PiPei.h>
|
#include <PiPei.h>
|
||||||
|
|
||||||
BOOLEAN mRestoreSmmConfigurationInS3 = FALSE;
|
BOOLEAN mRestoreSmmConfigurationInS3 = FALSE;
|
||||||
|
|
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// SMM CPU Service Protocol instance
|
// SMM CPU Service Protocol instance
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create PageTable for SMM use.
|
Create PageTable for SMM use.
|
||||||
|
|
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
extern UINT64 gTaskGateDescriptor;
|
extern UINT64 gTaskGateDescriptor;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
#include "SmmProfileInternal.h"
|
#include "SmmProfileInternal.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Slots for all MTRR( FIXED MTRR + VARIABLE MTRR + MTRR_LIB_IA32_MTRR_DEF_TYPE)
|
// Slots for all MTRR( FIXED MTRR + VARIABLE MTRR + MTRR_LIB_IA32_MTRR_DEF_TYPE)
|
||||||
|
|
|
@ -9,7 +9,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// SMM CPU Private Data structure that contains SMM Configuration Protocol
|
// SMM CPU Private Data structure that contains SMM Configuration Protocol
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
[Sources]
|
[Sources]
|
||||||
PiSmmCpuDxeSmm.c
|
PiSmmCpuDxeSmm.c
|
||||||
PiSmmCpuDxeSmm.h
|
PiSmmCpuCommon.h
|
||||||
MpService.c
|
MpService.c
|
||||||
SyncTimer.c
|
SyncTimer.c
|
||||||
CpuS3.c
|
CpuS3.c
|
||||||
|
|
|
@ -5,7 +5,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// attributes for reserved memory before it is promoted to system memory
|
// attributes for reserved memory before it is promoted to system memory
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/** @file
|
/** @file
|
||||||
SMM MP protocol implementation
|
SMM MP protocol implementation
|
||||||
|
|
||||||
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2019 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
#include "SmmMp.h"
|
#include "SmmMp.h"
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
/** @file
|
/** @file
|
||||||
SMM MP perf-logging implementation
|
SMM MP perf-logging implementation
|
||||||
|
|
||||||
Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2023 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
#define SMM_MP_PERF_PROCEDURE_NAME(procedure) # procedure
|
#define SMM_MP_PERF_PROCEDURE_NAME(procedure) # procedure
|
||||||
GLOBAL_REMOVE_IF_UNREFERENCED
|
GLOBAL_REMOVE_IF_UNREFERENCED
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
#include "SmmProfileInternal.h"
|
#include "SmmProfileInternal.h"
|
||||||
|
|
||||||
UINT32 mSmmProfileCr3;
|
UINT32 mSmmProfileCr3;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Provides services to access SMRAM Save State Map
|
Provides services to access SMRAM Save State Map
|
||||||
|
|
||||||
Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2024, Intel Corporation. All rights reserved.<BR>
|
||||||
Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
@ -17,7 +17,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
#include <Library/SmmServicesTableLib.h>
|
#include <Library/SmmServicesTableLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT64 Signature; // Offset 0x00
|
UINT64 Signature; // Offset 0x00
|
||||||
|
|
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
UINT64 mTimeoutTicker = 0;
|
UINT64 mTimeoutTicker = 0;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
#define PAGE_TABLE_PAGES 8
|
#define PAGE_TABLE_PAGES 8
|
||||||
#define ACC_MAX_BIT BIT3
|
#define ACC_MAX_BIT BIT3
|
||||||
|
|
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
|
|
||||||
EFI_PHYSICAL_ADDRESS mGdtBuffer;
|
EFI_PHYSICAL_ADDRESS mGdtBuffer;
|
||||||
UINTN mGdtBufferSize;
|
UINTN mGdtBufferSize;
|
||||||
|
|
|
@ -8,7 +8,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#include "PiSmmCpuDxeSmm.h"
|
#include "PiSmmCpuCommon.h"
|
||||||
#include "SmmProfileInternal.h"
|
#include "SmmProfileInternal.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue