summaryrefslogtreecommitdiff
path: root/Platform
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2019-06-11 21:11:13 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2019-07-03 16:40:50 +0100
commitdece7b69d2fc3c8c33c5ffaf946a0c0c81309ff8 (patch)
tree092429b91dcdc2a0d5a8a67e0ac95329494f01b5 /Platform
parent0b64610961ec5298cb3f1dbce89813fddc2b5ab0 (diff)
Platform/ARM: Juno: Fix usage of deprecated macros
Replaced the use of unsafe/deprecated macros with alternate safe options. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform')
-rw-r--r--Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
index c5967f5b..ea7591d7 100644
--- a/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
+++ b/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c
@@ -1,6 +1,6 @@
/** @file
*
-* Copyright (c) 2013-2017, ARM Limited. All rights reserved.
+* Copyright (c) 2013-2019, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
@@ -407,7 +407,6 @@ ArmJunoEntryPoint (
EFI_PHYSICAL_ADDRESS HypBase;
CHAR16 *TextDevicePath;
UINTN TextDevicePathSize;
- VOID *Buffer;
UINT32 JunoRevision;
EFI_EVENT EndOfDxeEvent;
@@ -495,7 +494,7 @@ ArmJunoEntryPoint (
//
if (JunoRevision != JUNO_REVISION_R0) {
// Enable PCI enumeration
- PcdSetBool (PcdPciDisableBusEnumeration, FALSE);
+ PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE);
//
// Create an event belonging to the "gEfiEndOfDxeEventGroupGuid" group.
@@ -531,8 +530,11 @@ ArmJunoEntryPoint (
TextDevicePath = (CHAR16*)FixedPcdGetPtr (PcdJunoFdtDevicePath);
if (TextDevicePath != NULL) {
TextDevicePathSize = StrSize (TextDevicePath);
- Buffer = PcdSetPtr (PcdFdtDevicePaths, &TextDevicePathSize, TextDevicePath);
- Status = (Buffer != NULL) ? EFI_SUCCESS : EFI_BUFFER_TOO_SMALL;
+ Status = PcdSetPtrS (
+ PcdFdtDevicePaths,
+ &TextDevicePathSize,
+ TextDevicePath
+ );
} else {
Status = EFI_NOT_FOUND;
}