summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c')
-rw-r--r--UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c b/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c
index c8a3f58e0c..00ab9bd0cd 100644
--- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c
+++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/X64/SmmStmSupport.c
@@ -14,9 +14,9 @@
///
/// Page Table Entry
///
-#define IA32_PG_P BIT0
-#define IA32_PG_RW BIT1
-#define IA32_PG_PS BIT7
+#define IA32_PG_P BIT0
+#define IA32_PG_RW BIT1
+#define IA32_PG_PS BIT7
/**
@@ -28,22 +28,22 @@
**/
VOID
StmGen4GPageTable (
- IN UINTN PageTableBase
+ IN UINTN PageTableBase
)
{
- UINTN Index;
- UINTN SubIndex;
- UINT64 *Pde;
- UINT64 *Pte;
- UINT64 *Pml4;
+ UINTN Index;
+ UINTN SubIndex;
+ UINT64 *Pde;
+ UINT64 *Pte;
+ UINT64 *Pml4;
- Pml4 = (UINT64*)(UINTN)PageTableBase;
+ Pml4 = (UINT64 *)(UINTN)PageTableBase;
PageTableBase += SIZE_4KB;
- *Pml4 = PageTableBase | IA32_PG_RW | IA32_PG_P;
+ *Pml4 = PageTableBase | IA32_PG_RW | IA32_PG_P;
- Pde = (UINT64*)(UINTN)PageTableBase;
+ Pde = (UINT64 *)(UINTN)PageTableBase;
PageTableBase += SIZE_4KB;
- Pte = (UINT64 *)(UINTN)PageTableBase;
+ Pte = (UINT64 *)(UINTN)PageTableBase;
for (Index = 0; Index < 4; Index++) {
*Pde = PageTableBase | IA32_PG_RW | IA32_PG_P;
@@ -75,7 +75,7 @@ StmGen4GPageTable (
UINT32
EFIAPI
SmmStmExceptionHandler (
- IN OUT STM_PROTECTION_EXCEPTION_STACK_FRAME Context
+ IN OUT STM_PROTECTION_EXCEPTION_STACK_FRAME Context
)
{
// TBD - SmmStmExceptionHandler, record information