]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
DuetPkg BootSector: Clean up .S files for 64-bit Duet for GCC build.
[mirror_edk2.git] / ShellPkg / Library / UefiShellNetwork1CommandsLib / Ping.c
index 10d38d80227c942a8caf0470ace2410b6f133d27..f24a55c87a6890ad0a851944006213b6bb6dcab9 100644 (file)
@@ -17,6 +17,7 @@
 \r
 #define PING_IP4_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv4_ADDRESS)))\r
 \r
+UINT64          CurrentTick = 0;\r
 \r
 //\r
 // Function templates to match the IPv4 and IPv6 commands that we use.\r
@@ -217,13 +218,17 @@ STATIC CONST CHAR16      *mSrcString;
 STATIC UINT64            mFrequency = 0;\r
 EFI_CPU_ARCH_PROTOCOL    *gCpu = NULL;\r
 \r
+/**\r
+  Read the current time.\r
+\r
+  @retval the current tick value.\r
+**/\r
 UINT64\r
 EFIAPI\r
 ReadTime (\r
   VOID\r
   )\r
 {\r
-  static UINT64          CurrentTick = 0;\r
   UINT64                 TimerPeriod;\r
   EFI_STATUS             Status;\r
 \r