Skip to content

Commit

Permalink
Remove the unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kuqin12 committed Dec 14, 2023
1 parent 682b779 commit 01449b5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,24 +323,12 @@ PageTableLibMapInLevel (
IA32_PAGING_ENTRY OriginalParentPagingEntry;
IA32_PAGING_ENTRY OriginalCurrentPagingEntry;

// MU_CHANGE: Configure propagate bit mask.
IA32_MAP_ATTRIBUTE PropagateMask;

ASSERT (Level != 0);
ASSERT ((Attribute != NULL) && (Mask != NULL));

CreateNew = FALSE;
AllOneMask.Uint64 = ~0ull;

// MU_CHANGE: Configure propagate bit mask.
PropagateMask.Uint64 = IA32_MAP_ATTRIBUTE_PAGE_TABLE_BASE_ADDRESS_MASK;
PropagateMask.Bits.Present = 1;
PropagateMask.Bits.ReadWrite = 1;
PropagateMask.Bits.UserSupervisor = 1;
PropagateMask.Bits.Dirty = 1;
PropagateMask.Bits.Accessed = 1;
PropagateMask.Bits.Nx = 1;

NopAttribute.Uint64 = 0;
NopAttribute.Bits.Present = 1;
NopAttribute.Bits.ReadWrite = 1;
Expand Down

0 comments on commit 01449b5

Please sign in to comment.