SetGcdMemorySpaceAttributes (MemorySpaceMap, NumberOfDescriptors,\r
*StartGcdRegion,\r
(BaseAddress + (Index * TT_ADDRESS_AT_LEVEL(TableLevel))) - *StartGcdRegion,\r
- PageAttributeToGcdAttribute (EntryAttribute));\r
+ PageAttributeToGcdAttribute (*PrevEntryAttribute));\r
}\r
\r
// Start of the new region\r