]> git.proxmox.com Git - mirror_edk2.git/blame - EmbeddedPkg/EblExternCmd/Main.c
EmulatorPkg: Add structure braces { } to fix build warning
[mirror_edk2.git] / EmbeddedPkg / EblExternCmd / Main.c
CommitLineData
2ef2b01e
A
1/** @file\r
2 Example of an external EBL command. It's loaded via EBL start command. \r
3 Argc and Argv are passed in via "" of the EBL command line.\r
4\r
5 Start fs0:\EdkExternCmd.efi "Argv[0] Argv[1] 2"\r
6\r
7 will launch this command with \r
8 Argv[0] = "Argv[0]"\r
9 Argv[1] = "Argv[2]"\r
10 Argv[2] = "3"\r
11\r
60274cca
HT
12 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
13 Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
2ef2b01e 14\r
60274cca 15 This program and the accompanying materials\r
2ef2b01e
A
16 are licensed and made available under the terms and conditions of the BSD License\r
17 which accompanies this distribution. The full text of the license may be found at\r
18 http://opensource.org/licenses/bsd-license.php\r
19\r
20 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
21 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
22\r
23\r
24**/\r
25\r
11c20f4e 26#include "Ebl.h"\r
2ef2b01e
A
27\r
28/**\r
29 Entry point with Argc, Argv. Put your code here.\r
30\r
31 @param Argc Number of command arguments in Argv\r
32 @param Argv Array of strings that represent the parsed command line. \r
7ca9e5a4 33 Argv[0] is the command name\r
2ef2b01e
A
34\r
35 @return EFI_SUCCESS\r
36\r
37**/\r
38EFI_STATUS\r
39EblMain (\r
40 IN UINTN Argc,\r
41 IN CHAR8 **Argv\r
42 )\r
43{\r
44 UINTN Index;\r
45\r
46 AsciiPrint ("Hello World\n");\r
47 for (Index = 0; Index < Argc; Index++) {\r
48 AsciiPrint ("Argv[%d] = %a\n", Index, Argv[Index]);\r
49 }\r
50 \r
51 return EFI_SUCCESS;\r
52}\r
53\r