X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=EmbeddedPkg%2FEmbeddedMonotonicCounter%2FEmbeddedMonotonicCounter.c;h=1dec02e65a9424760b72d1df5d7d145b8b9ae37a;hb=3402aac7d985bf8a9f9d3c639f3fe93609380513;hp=21397dcebcf078ea6c113554ead9f2475d361b56;hpb=60274ccab831d7874129a6b6c271969418296960;p=mirror_edk2.git diff --git a/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c b/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c index 21397dcebc..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; @@ -72,7 +72,7 @@ MonotonicCounterDriverInitialize ( gBS->GetNextMonotonicCount = GetNextMonotonicCount; gRT->GetNextHighMonotonicCount = GetNextHighMonotonicCount; - // Install the Monotonic Counter Architctural Protocol onto a new handle + // Install the Monotonic Counter Architectural Protocol onto a new handle Status = gBS->InstallMultipleProtocolInterfaces ( &Handle, &gEfiMonotonicCounterArchProtocolGuid, NULL,