2014-08-08 23:21:16 +04:00
|
|
|
#include <efi.h>
|
|
|
|
#include <efilib.h>
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
|
|
|
|
{
|
|
|
|
INTN Argc, i;
|
|
|
|
CHAR16 **Argv;
|
|
|
|
|
|
|
|
InitializeLib(ImageHandle, SystemTable);
|
|
|
|
Argc = GetShellArgcArgv(ImageHandle, &Argv);
|
|
|
|
|
2024-05-30 18:39:00 +03:00
|
|
|
Print(u"Hello World, started with Argc=%d\n", Argc);
|
2014-08-08 23:21:16 +04:00
|
|
|
for (i = 0 ; i < Argc ; ++i)
|
2024-05-30 18:39:00 +03:00
|
|
|
Print(u" Argv[%d] = '%s'\n", i, Argv[i]);
|
2014-08-08 23:21:16 +04:00
|
|
|
|
2024-05-30 18:39:00 +03:00
|
|
|
Print(u"Bye.\n");
|
2014-08-08 23:21:16 +04:00
|
|
|
return EFI_SUCCESS;
|
|
|
|
}
|