X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmbeddedPkg%2FEmbeddedMonotonicCounter%2FEmbeddedMonotonicCounter.c;h=1dec02e65a9424760b72d1df5d7d145b8b9ae37a;hb=3402aac7d985bf8a9f9d3c639f3fe93609380513;hp=7348fa60e61c9a5fb8897edefde4a3e90e6eb1d3;hpb=62d441fb17d59958bf00c4a1f3b52bf6a0b40b24;p=mirror_edk2.git diff --git a/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c b/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c index 7348fa60e6..1dec02e65a 100644 --- a/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c +++ b/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- + This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -32,7 +32,7 @@ GetNextMonotonicCount ( if (Count == NULL) { return EFI_INVALID_PARAMETER; } - + *Count = gCurrentMonotonicCount++; return EFI_SUCCESS; } @@ -46,9 +46,9 @@ GetNextHighMonotonicCount ( if (HighCount == NULL) { return EFI_INVALID_PARAMETER; } - + gCurrentMonotonicCount += 0x0000000100000000ULL; - + *HighCount = (UINT32)RShiftU64 (gCurrentMonotonicCount, 32) & 0xFFFFFFFF; return EFI_SUCCESS;