mirror of https://github.com/acidanthera/audk.git
ShellPkg/AcpiView: Move table count reset
The table count module level symbols are now reset when executing the core method, rather than the shell command wrapper. Cc: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Zhichao Gao <zhichao.gao@intel.com> Signed-off-by: Tomas Pilar <tomas.pilar@arm.com>
This commit is contained in:
parent
e18ac66d84
commit
e46e3040fc
|
@ -255,6 +255,10 @@ AcpiView (
|
||||||
EfiConfigurationTable = NULL;
|
EfiConfigurationTable = NULL;
|
||||||
OriginalAttribute = 0;
|
OriginalAttribute = 0;
|
||||||
|
|
||||||
|
// Reset Table counts
|
||||||
|
mTableCount = 0;
|
||||||
|
mBinTableCount = 0;
|
||||||
|
|
||||||
// Reset The error/warning counters
|
// Reset The error/warning counters
|
||||||
ResetErrorCount ();
|
ResetErrorCount ();
|
||||||
ResetWarningCount ();
|
ResetWarningCount ();
|
||||||
|
@ -390,9 +394,7 @@ ShellCommandRunAcpiView (
|
||||||
CONST CHAR16* MandatoryTableSpecStr;
|
CONST CHAR16* MandatoryTableSpecStr;
|
||||||
CONST CHAR16 *SelectedTableName;
|
CONST CHAR16 *SelectedTableName;
|
||||||
|
|
||||||
// Set Defaults
|
// Set configuration defaults
|
||||||
mTableCount = 0;
|
|
||||||
mBinTableCount = 0;
|
|
||||||
AcpiConfigSetDefaults ();
|
AcpiConfigSetDefaults ();
|
||||||
|
|
||||||
ShellStatus = SHELL_SUCCESS;
|
ShellStatus = SHELL_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue