mirror of https://github.com/acidanthera/audk.git
ArmPkg/UncachedMemoryAllocationLib: Use gDS function to set memory attributes
Calling directly the CPU Architectural protocol does not update the GCD. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12024 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
65cd89d008
commit
44c011619e
|
@ -14,6 +14,7 @@
|
|||
|
||||
**/
|
||||
|
||||
#include <Base.h>
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
|
@ -244,10 +245,8 @@ UncachedInternalAllocateAlignedPages (
|
|||
gAttributes = Descriptor.Attributes;
|
||||
}
|
||||
|
||||
Status = gDebugUncachedCpu->SetMemoryAttributes (gDebugUncachedCpu, Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_UC);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return NULL;
|
||||
}
|
||||
Status = gDS->SetMemorySpaceAttributes (Memory, EFI_PAGES_TO_SIZE (Pages), EFI_MEMORY_UC);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
return (VOID *)(UINTN)Memory;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue