/** @file\r
*\r
-* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
+* Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
*\r
* This program and the accompanying materials\r
* are licensed and made available under the terms and conditions of the BSD License\r
EFI_STATUS Status;\r
UINT32 LoaderType;\r
ARM_BDS_LOADER_OPTIONAL_DATA* OptionalData;\r
- ARM_BDS_LINUX_ARGUMENTS* LinuxArguments;\r
- UINTN CmdLineSize;\r
- UINTN InitrdSize;\r
- EFI_DEVICE_PATH* Initrd;\r
UINT16 LoadOptionIndexSize;\r
\r
if (IS_ARM_BDS_BOOTENTRY (BootOption)) {\r
\r
Status = BdsStartEfiApplication (gImageHandle, BootOption->FilePathList, 0, NULL);\r
} else if (LoaderType == BDS_LOADER_KERNEL_LINUX_ATAG) {\r
- LinuxArguments = &(OptionalData->Arguments.LinuxArguments);\r
- CmdLineSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->CmdLineSize);\r
- InitrdSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->InitrdSize);\r
-\r
- if (InitrdSize > 0) {\r
- Initrd = GetAlignedDevicePath ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize));\r
- } else {\r
- Initrd = NULL;\r
- }\r
-\r
- Status = BdsBootLinuxAtag (BootOption->FilePathList,\r
- Initrd, // Initrd\r
- (CHAR8*)(LinuxArguments + 1)); // CmdLine\r
+ ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
} else if (LoaderType == BDS_LOADER_KERNEL_LINUX_FDT) {\r
- LinuxArguments = &(OptionalData->Arguments.LinuxArguments);\r
- CmdLineSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->CmdLineSize);\r
- InitrdSize = ReadUnaligned16 ((CONST UINT16*)&LinuxArguments->InitrdSize);\r
-\r
- if (InitrdSize > 0) {\r
- Initrd = GetAlignedDevicePath ((EFI_DEVICE_PATH*)((UINTN)(LinuxArguments + 1) + CmdLineSize));\r
- } else {\r
- Initrd = NULL;\r
- }\r
- Status = BdsBootLinuxFdt (\r
- BootOption->FilePathList,\r
- Initrd,\r
- (CHAR8*)(LinuxArguments + 1)\r
- );\r
+ ASSERT_EFI_ERROR (EFI_UNSUPPORTED);\r
}\r
} else {\r
// Connect all the drivers if the EFI Application is not a EFI OS Loader\r