]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.c
EmbeddedPkg/AndroidFastbootTransportTcpDxe: fix DestroyChild() call
[mirror_edk2.git] / EmbeddedPkg / EmbeddedMonotonicCounter / EmbeddedMonotonicCounter.c
index 21397dcebcf078ea6c113554ead9f2475d361b56..089b1f6942eeb6de8b1068858d65143335fa38cb 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -32,7 +26,7 @@ GetNextMonotonicCount (
   if (Count == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   *Count = gCurrentMonotonicCount++;\r
   return EFI_SUCCESS;\r
 }\r
@@ -46,9 +40,9 @@ GetNextHighMonotonicCount (
   if (HighCount == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   gCurrentMonotonicCount += 0x0000000100000000ULL;\r
-  \r
+\r
   *HighCount = (UINT32)RShiftU64 (gCurrentMonotonicCount, 32) & 0xFFFFFFFF;\r
 \r
   return EFI_SUCCESS;\r
@@ -72,7 +66,7 @@ MonotonicCounterDriverInitialize (
   gBS->GetNextMonotonicCount     = GetNextMonotonicCount;\r
   gRT->GetNextHighMonotonicCount = GetNextHighMonotonicCount;\r
 \r
-  // Install the Monotonic Counter Architctural Protocol onto a new handle\r
+  // Install the Monotonic Counter Architectural Protocol onto a new handle\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &Handle,\r
                   &gEfiMonotonicCounterArchProtocolGuid,    NULL,\r