summaryrefslogtreecommitdiff
path: root/ShellPkg/Library/UefiShellNetwork1CommandsLib
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 16:57:26 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 16:57:26 +0000
commit6a5aa4d6dc8240128ebc667919cc8f5d68541f45 (patch)
tree939cdcafc7a5ccaa5971aaad3bdce5c817b9f1f6 /ShellPkg/Library/UefiShellNetwork1CommandsLib
parentff7666c51118f98f0c8412c45abe9ed9695cd1aa (diff)
downloadedk2-platforms-6a5aa4d6dc8240128ebc667919cc8f5d68541f45.tar.xz
ShellPkg: Add 3 missing function declaration comments and change a function static variable to a file global variable.
Submitted-by: jcarsey Reviewed-by: geekboy15a Reviewed-by: ydong10 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12317 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellNetwork1CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
index 10d38d8022..f24a55c87a 100644
--- a/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
+++ b/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
@@ -17,6 +17,7 @@
#define PING_IP4_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv4_ADDRESS)))
+UINT64 CurrentTick = 0;
//
// Function templates to match the IPv4 and IPv6 commands that we use.
@@ -217,13 +218,17 @@ STATIC CONST CHAR16 *mSrcString;
STATIC UINT64 mFrequency = 0;
EFI_CPU_ARCH_PROTOCOL *gCpu = NULL;
+/**
+ Read the current time.
+
+ @retval the current tick value.
+**/
UINT64
EFIAPI
ReadTime (
VOID
)
{
- static UINT64 CurrentTick = 0;
UINT64 TimerPeriod;
EFI_STATUS Status;