2019-07-22 22:28:20 -07:00
|
|
|
/** @file
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
2019-10-29 17:00:54 -07:00
|
|
|
#include <Library/DebugLib.h>
|
2019-11-05 15:48:06 -08:00
|
|
|
#include <Library/ShellExtensionLib.h>
|
|
|
|
|
#include "ShellCmds.h"
|
|
|
|
|
#include "Shell.h"
|
2019-07-22 22:28:20 -07:00
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
|
LoadShellCommands (
|
|
|
|
|
VOID
|
|
|
|
|
)
|
|
|
|
|
{
|
2019-11-05 15:48:06 -08:00
|
|
|
LIST_ENTRY *EntryList;
|
|
|
|
|
CONST SHELL_COMMAND **ShellExtensionCmds;
|
|
|
|
|
CONST SHELL_COMMAND **Iter;
|
|
|
|
|
|
|
|
|
|
EntryList = GetShellCommandEntryList ();
|
|
|
|
|
InitializeListHead (EntryList);
|
|
|
|
|
|
2019-07-22 22:28:20 -07:00
|
|
|
ShellCommandRegister (&ShellCommandExit);
|
|
|
|
|
ShellCommandRegister (&ShellCommandHelp);
|
|
|
|
|
ShellCommandRegister (&ShellCommandHob);
|
2019-10-24 09:22:09 -07:00
|
|
|
ShellCommandRegister (&ShellCommandMm);
|
2019-07-22 22:28:20 -07:00
|
|
|
ShellCommandRegister (&ShellCommandMmap);
|
|
|
|
|
ShellCommandRegister (&ShellCommandPerf);
|
|
|
|
|
ShellCommandRegister (&ShellCommandBoot);
|
|
|
|
|
ShellCommandRegister (&ShellCommandMmcDll);
|
|
|
|
|
ShellCommandRegister (&ShellCommandCdata);
|
|
|
|
|
ShellCommandRegister (&ShellCommandDmesg);
|
|
|
|
|
ShellCommandRegister (&ShellCommandCpuid);
|
|
|
|
|
ShellCommandRegister (&ShellCommandMsr);
|
|
|
|
|
ShellCommandRegister (&ShellCommandMtrr);
|
|
|
|
|
ShellCommandRegister (&ShellCommandPci);
|
|
|
|
|
ShellCommandRegister (&ShellCommandReset);
|
|
|
|
|
ShellCommandRegister (&ShellCommandUcode);
|
2019-10-06 09:03:00 -07:00
|
|
|
ShellCommandRegister (&ShellCommandCls);
|
2019-10-29 17:00:54 -07:00
|
|
|
ShellCommandRegister (&ShellCommandFs);
|
|
|
|
|
|
2019-11-05 15:48:06 -08:00
|
|
|
//
|
|
|
|
|
// Load Platform specific shell commands
|
|
|
|
|
//
|
|
|
|
|
ShellExtensionCmds = GetShellExtensionCmds ();
|
|
|
|
|
for (Iter = ShellExtensionCmds; *Iter != NULL; Iter++) {
|
|
|
|
|
ShellCommandRegister (*Iter);
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-22 22:28:20 -07:00
|
|
|
return EFI_SUCCESS;
|
|
|
|
|
}
|