\r
OptionalData = (UINT8*)BootArguments;\r
} else {\r
- OptionalData = NULL;\r
- OptionalDataSize = 0;\r
+ OptionalData = (UINT8*)DefaultBootArgument;\r
+ OptionalDataSize = CmdLineSize;\r
}\r
\r
BootOptionCreate (LOAD_OPTION_ACTIVE | LOAD_OPTION_CATEGORY_BOOT,\r
BDS_SUPPORTED_DEVICE* SupportedBootDevice;\r
ARM_BDS_LOADER_ARGUMENTS* BootArguments;\r
CHAR16 BootDescription[BOOT_DEVICE_DESCRIPTION_MAX];\r
- CHAR8 CmdLine[BOOT_DEVICE_OPTION_MAX];\r
+ CHAR8 AsciiCmdLine[BOOT_DEVICE_OPTION_MAX];\r
+ CHAR16 CmdLine[BOOT_DEVICE_OPTION_MAX];\r
UINT32 Attributes;\r
ARM_BDS_LOADER_TYPE BootType;\r
BDS_LOAD_OPTION_ENTRY *BdsLoadOptionEntry;\r
}\r
\r
Print(L"Arguments to pass to the binary: ");\r
- Status = GetHIInputAscii (CmdLine,BOOT_DEVICE_OPTION_MAX);\r
+ Status = GetHIInputAscii (AsciiCmdLine, BOOT_DEVICE_OPTION_MAX);\r
if (EFI_ERROR(Status)) {\r
Status = EFI_ABORTED;\r
goto FREE_DEVICE_PATH;\r
}\r
\r
- CmdLineSize = AsciiStrSize (CmdLine);\r
+ CmdLineSize = AsciiStrSize (AsciiCmdLine);\r
InitrdSize = GetDevicePathSize (InitrdPath);\r
\r
OptionalDataSize = sizeof(ARM_BDS_LOADER_ARGUMENTS) + CmdLineSize + InitrdSize;\r
\r
OptionalData = (UINT8*)BootArguments;\r
} else {\r
- OptionalData = NULL;\r
- OptionalDataSize = 0;\r
+ Print (L"Arguments to pass to the EFI Application: ");\r
+ Status = GetHIInputStr (CmdLine, BOOT_DEVICE_OPTION_MAX);\r
+ if (EFI_ERROR (Status)) {\r
+ Status = EFI_ABORTED;\r
+ goto EXIT;\r
+ }\r
+\r
+ OptionalData = (UINT8*)CmdLine;\r
+ OptionalDataSize = StrSize (CmdLine);\r
}\r
\r
Print(L"Description for this new Entry: ");\r