[edk2-devel] [platforms: PATCH 1/1] Marvell/Drivers: MvFvbDxe: Switch to PcdSet64S

Liming Gao liming.gao at intel.com
Fri Jul 31 01:53:42 UTC 2020


Reviewed-by: Liming Gao <liming.gao at intel.com>

-----Original Message-----
From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Marcin Wojtas
Sent: 2020年7月31日 0:06
To: devel at edk2.groups.io
Cc: leif at nuviainc.com; ard.biesheuvel at arm.com; mw at semihalf.com; jsd at semihalf.com; nadavh at marvell.com; kostap at marvell.com
Subject: [edk2-devel] [platforms: PATCH 1/1] Marvell/Drivers: MvFvbDxe: Switch to PcdSet64S

According to the bug:
https://bugzilla.tianocore.org/show_bug.cgi?id=2777
the deprecated code under DISABLE_NEW_DEPRECATED_INTERFACES will be removed, which will result in compilation breakage of the Marvell platforms. Prevent that by switching to the different PcdSet API.

Signed-off-by: Marcin Wojtas <mw at semihalf.com>
---
 Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
index fba75b6..e8cad86 100644
--- a/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
+++ b/Silicon/Marvell/Drivers/Spi/MvFvbDxe/MvFvbDxe.c
@@ -1059,12 +1059,12 @@ MvFvbConfigureFlashInstance (
         return EFI_OUT_OF_RESOURCES;
     }
 
-    PcdSet64 (PcdFlashNvStorageVariableBase64,
+    PcdSet64S (PcdFlashNvStorageVariableBase64,
       (UINT64) FlashInstance->RegionBaseAddress);
-    PcdSet64 (PcdFlashNvStorageFtwWorkingBase64,
+    PcdSet64S (PcdFlashNvStorageFtwWorkingBase64,
       (UINT64) FlashInstance->RegionBaseAddress
       + VariableSize);
-    PcdSet64 (PcdFlashNvStorageFtwSpareBase64,
+    PcdSet64S (PcdFlashNvStorageFtwSpareBase64,
       (UINT64) FlashInstance->RegionBaseAddress
       + VariableSize
       + FtwWorkingSize);
--
2.7.4





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#63532): https://edk2.groups.io/g/devel/message/63532
Mute This Topic: https://groups.io/mt/75889250/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list