Files
slimbootloader/BootloaderCommonPkg/Library/ShellLib/ShellCmds.c
T
Aiden Park 5103615bfb [ShellLib] Add ShellCommandRegister API
Currently, all shell commands are statically defined in header file.
Add shell command registration API to allow include/exclude shell
commands dynamically.
Later, some debug shell commands will be added according to build
mode or debug mask.
- TBD: Sorting shell commands by name

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-08-05 21:04:27 -07:00

35 lines
972 B
C

/** @file
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "ShellCmds.h"
EFI_STATUS
LoadShellCommands (
VOID
)
{
ShellCommandRegister (&ShellCommandExit);
ShellCommandRegister (&ShellCommandHelp);
ShellCommandRegister (&ShellCommandHob);
ShellCommandRegister (&ShellCommandMem);
ShellCommandRegister (&ShellCommandMmap);
ShellCommandRegister (&ShellCommandPerf);
ShellCommandRegister (&ShellCommandBoot);
ShellCommandRegister (&ShellCommandMmcDll);
ShellCommandRegister (&ShellCommandCdata);
ShellCommandRegister (&ShellCommandDmesg);
ShellCommandRegister (&ShellCommandCpuid);
ShellCommandRegister (&ShellCommandIo);
ShellCommandRegister (&ShellCommandMsr);
ShellCommandRegister (&ShellCommandMtrr);
ShellCommandRegister (&ShellCommandPci);
ShellCommandRegister (&ShellCommandReset);
ShellCommandRegister (&ShellCommandUcode);
return EFI_SUCCESS;
}