From 6a5aa4d6dc8240128ebc667919cc8f5d68541f45 Mon Sep 17 00:00:00 2001 From: jcarsey Date: Fri, 9 Sep 2011 16:57:26 +0000 Subject: 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 --- ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ShellPkg/Library/UefiShellNetwork1CommandsLib') 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; -- cgit v1.2.3