+ Status = ArmVExpressGetPlatform (&Platform);\r
+ if (!EFI_ERROR (Status)) {\r
+ TextDevicePathSize = StrSize ((CHAR16*)PcdGetPtr (PcdFvpFdtDevicePathsBase)) - sizeof (CHAR16);\r
+ TextDevicePathSize += StrSize (Platform->FdtName);\r
+\r
+ TextDevicePath = AllocatePool (TextDevicePathSize);\r
+ if (TextDevicePath != NULL) {\r
+ StrCpy (TextDevicePath, ((CHAR16*)PcdGetPtr (PcdFvpFdtDevicePathsBase)));\r
+ StrCat (TextDevicePath, Platform->FdtName);\r
+ Buffer = PcdSetPtr (PcdFdtDevicePaths, &TextDevicePathSize, TextDevicePath);\r
+ if (Buffer == NULL) {\r
+ DEBUG ((\r
+ EFI_D_ERROR,\r
+ "ArmFvpDxe: Setting of FDT device path in PcdFdtDevicePaths failed - %r\n", EFI_BUFFER_TOO_SMALL\r
+ ));\r
+ }\r
+ FreePool (TextDevicePath);\r
+ }\r
+ }\r
+\r