diff mbox series

[edk2,edk2-platforms,2/8] Silicon/SynQuacer/OpteeRngDxe: fix 32-bit build

Message ID 20190114170205.9748-3-ard.biesheuvel@linaro.org
State New
Headers show
Series Silicon/SynQuacer: add support for 32-bit mode | expand

Commit Message

Ard Biesheuvel Jan. 14, 2019, 5:01 p.m. UTC
Replace a UINT64 cast of a virtual address with a UINTN cast so
that this driver can be built for 32-bit ARM as well.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 Silicon/Socionext/SynQuacer/Drivers/OpteeRngDxe/OpteeRng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/Silicon/Socionext/SynQuacer/Drivers/OpteeRngDxe/OpteeRng.c b/Silicon/Socionext/SynQuacer/Drivers/OpteeRngDxe/OpteeRng.c
index 089fad8b5ce5..e55d87ea4299 100644
--- a/Silicon/Socionext/SynQuacer/Drivers/OpteeRngDxe/OpteeRng.c
+++ b/Silicon/Socionext/SynQuacer/Drivers/OpteeRngDxe/OpteeRng.c
@@ -159,7 +159,7 @@  GetRNG (
     InvokeFunctionArg.Params[0].Attribute =
       OPTEE_MESSAGE_ATTRIBUTE_TYPE_MEMORY_INOUT;
     InvokeFunctionArg.Params[0].Union.Memory.BufferAddress =
-      (UINT64) OutPointer;
+      (UINTN) OutPointer;
     InvokeFunctionArg.Params[0].Union.Memory.Size = ValueLength;
 
     Status = OpteeInvokeFunction (&InvokeFunctionArg);