X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPkg%2FLibrary%2FDebugUncachedMemoryAllocationLib%2FDebugUncachedMemoryAllocationLib.c;h=80e7c8c4729c4a611766aba4395eca350769c2f0;hp=b4c1c5f2e5f13c94e8a3913c9c6f5cf18bd06937;hb=f659880bfa42ded20a00d3e371c998b42dcdd0fd;hpb=66b631f5e0beb4792a0f54c31aab5b08b97dc329 diff --git a/ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.c b/ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.c index b4c1c5f2e5..80e7c8c472 100644 --- a/ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.c +++ b/ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.c @@ -49,7 +49,7 @@ UncachedInternalAllocateAlignedPages ( -EFI_CPU_ARCH_PROTOCOL *gCpu; +EFI_CPU_ARCH_PROTOCOL *gDebugUncachedCpu; VIRTUAL_UNCACHED_PAGES_PROTOCOL *gVirtualUncachedPages; // @@ -641,7 +641,7 @@ DebugUncachedMemoryAllocationLibConstructor ( { EFI_STATUS Status; - Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID **)&gCpu); + Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID **)&gDebugUncachedCpu); ASSERT_EFI_ERROR(Status); Status = gBS->LocateProtocol (&gVirtualUncachedPagesProtocolGuid, NULL, (VOID **)&gVirtualUncachedPages);