\r
**/\r
\r
+#include <Base.h>\r
#include <Library/BaseLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
gAttributes = Descriptor.Attributes;\r
}\r
\r
- Status = gDebugUncachedCpu->SetMemoryAttributes (gDebugUncachedCpu, Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_UC);\r
- if (EFI_ERROR (Status)) {\r
- return NULL;\r
- }\r
+ Status = gDS->SetMemorySpaceAttributes (Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_UC);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
return (VOID *)(UINTN)Memory;\r
}\r