]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BdsHelper.c
ArmPlatformPkg: remove ArmVExpress-RTSM-A15_MPCore.dsc/fdf
[mirror_edk2.git] / ArmPlatformPkg / Bds / BdsHelper.c
index d051f074eeb75b610e040f9aed2db1b679a41a7f..732292cdb94a0011b701f09c6e6d8f227f05d7aa 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
 *\r
 *  Copyright (c) 2011 - 2014, 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
-*  which accompanies this distribution.  The full text of the license may be found at        \r
-*  http://opensource.org/licenses/bsd-license.php                                            \r
 *\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+*  This program and the accompanying materials\r
+*  are licensed and made available under the terms and conditions of the BSD License\r
+*  which accompanies this distribution.  The full text of the license may be found at\r
+*  http://opensource.org/licenses/bsd-license.php\r
+*\r
+*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 *\r
 **/\r
 \r
@@ -256,15 +256,6 @@ GetHIInputBoolean (
   }\r
 }\r
 \r
-BOOLEAN\r
-HasFilePathEfiExtension (\r
-  IN CHAR16* FilePath\r
-  )\r
-{\r
-  return (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".EFI") == 0) ||\r
-         (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".efi") == 0);\r
-}\r
-\r
 // Return the last non end-type Device Path Node from a Device Path\r
 EFI_DEVICE_PATH*\r
 GetLastDevicePathNode (\r
@@ -404,7 +395,9 @@ IsUnicodeString (
  * Some limitations:\r
  *   - it only supports unicode string that use ASCII character (< 0x100)\r
  *   - single character ASCII strings are interpreted as Unicode string\r
- *   - string cannot be longer than 2 x BOOT_DEVICE_OPTION_MAX (600 bytes)\r
+ *   - string cannot be longer than BOOT_DEVICE_OPTION_MAX characters and\r
+ *     thus (BOOT_DEVICE_OPTION_MAX*2) bytes for an Unicode string and\r
+ *     BOOT_DEVICE_OPTION_MAX bytes for an ASCII string.\r
  *\r
  * @param String    Buffer that might contain a Unicode or Ascii string\r
  * @param IsUnicode If not NULL this boolean value returns if the string is an\r
@@ -446,7 +439,7 @@ IsPrintableString (
   }\r
 \r
   IsPrintable = FALSE;\r
-  for (Index = 0; Index < BOOT_DEVICE_OPTION_MAX * 2; Index++) {\r
+  for (Index = 0; Index < BOOT_DEVICE_OPTION_MAX; Index++) {\r
     if (UnicodeDetected) {\r
       Character = ((CHAR16*)String)[Index];\r
     } else {\r