ShellPkg: update ping to use timer service instead of timer arch protocol .
The ping command uses PI CPU arch protocol to calculate the RTT time, which is not allowed to use in UEFI shell. This patch updates it to use the UEFI timer event and Stall service to estimate the system timer period. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Hegde, Nagaraj P <nagaraj-p.hegde@hpe.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# Provides shell network1 functions
|
||||
#
|
||||
# Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved. <BR>
|
||||
# Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved. <BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@ -55,6 +55,7 @@
|
||||
|
||||
[Protocols]
|
||||
gEfiCpuArchProtocolGuid ## CONSUMES
|
||||
gEfiTimerArchProtocolGuid
|
||||
gEfiIp6ProtocolGuid ## SOMETIMES_CONSUMES
|
||||
gEfiIp6ServiceBindingProtocolGuid ## SOMETIMES_CONSUMES
|
||||
gEfiIp6ConfigProtocolGuid ## SOMETIMES_CONSUMES
|
||||
|
Reference in New Issue
Block a user