From patchwork Mon Jan 14 17:01:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155564 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3883593jaa; Mon, 14 Jan 2019 09:02:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN47GV55TYJ5JpP1VTt9n/5hSJGOBHzt0i/oxyxPqhPEqrGfeNAVpXFnHJps/80JWkB/mH6S X-Received: by 2002:a62:3141:: with SMTP id x62mr26080489pfx.12.1547485337048; Mon, 14 Jan 2019 09:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547485337; cv=none; d=google.com; s=arc-20160816; b=kDJv+EE2jR2qmARhKr+S2QQwm09a/sHL5pykcmsUZkMbpei7TPl6fVokh1uz8/Tkdd 1srtJZ+ufITnH4ZmxM3izC0nSMajM0Am3tIObwba4vETF3jNvlZVpPgQUXS7jSBfcbTF JrGausBZ551s/iLBJZg8rqgfxea9wB3pqu0MkJMCqUeLS7uUph1Ip2m1xK63dyiRj+iH MqJClQEiZe7pXNFavBmYXnnQIlbc1p3gyrMfE0IJVEwYMslrrASt/wFQh92SMR3HjHbw 4yNPJdygdiGJnhI8BPNCesPid+FF0H9rTw0lWWstudX84iMpjo/TngH/TIzM4bTCjmu1 MCWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=75uyGw3+FKcJrJjv2lKcDu4uu9dgTUkK7ov7edqvP1s=; b=nCy54mW81zMvTeRe2Yp6xphXfmoBQDVtkSWlwCi28Rg/t7Cb247KJWSsn8e/y5b4j7 yK34gat1i51TWRSTSjBkT3REs6V6CYM/ULhtHwBU/Uw+SDInOP8q+fjaHHV7m1q0UwbS 3MO2lgExE2X1hXFzNP8ETRlci5neqvKaChFd7w0a9zqVJGXYOkt7KBtMEQ1j6ibFkWbX 73PiOcSF9026irQGNq+nagivZZK5bK0Djkgwde69RIpZ7hUd0oY0yr9nUQ005dp7/63E XZku4CD9ZpTnLtXW8+HJJBw0hXDlO1x3SBvYmZ/GLJkf26rnvaAPMozzUvho7aTN17x8 GVPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lk0ZOiRG; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id y10si677153plt.406.2019.01.14.09.02.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 09:02:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lk0ZOiRG; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D00AA211B5A41; Mon, 14 Jan 2019 09:02:14 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::341; helo=mail-wm1-x341.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 93D7A2194D3B3 for ; Mon, 14 Jan 2019 09:02:12 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id y139so287690wmc.5 for ; Mon, 14 Jan 2019 09:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7SM2wxRac9IwHNjKL6HG84LwJctrTDYYQdc+7nt90cY=; b=Lk0ZOiRG6im35nWVtn3tuqL6H11jCrC19qH77BsWE8dQfYu6qEcJdHvC7lH1RVosX8 yQdzlt35l4a3++VlHt+qKJSNci52jbk2WJxGkuvVMQCS87Y6YYOB82euV/1bzYOszdMb VJZb6NW5C8yvdJXPDb9LCl8Fyfvqx1BIiKMDQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7SM2wxRac9IwHNjKL6HG84LwJctrTDYYQdc+7nt90cY=; b=ftZY7kXOgniCzhwGYRnf6FCxiItHpN4P47FW5rioCxpthZ9ONzo69KdbPjtHj8WtKE raykAbAm7HW9pm+Cqr0IFZYnYRD3h7icVujKwZfnihMZAvvew1ttxMBet+VloLuOyN8o ZWGyYlvAqMX5W5dwLbdry8S3NTR45OQRvRfAdVyqu5ex3rMWQy41KphgRpWfSLbe0t7E j09Y6AoDr6XYhStpxra8rQfkjfK3O1DEDpEltjPk6lP2Hoc0H9V8oDb0aMNBFozJ63U8 JMJT/cI4C1vvjMsYO3SFilHjg0mkyGCfhVIyQqGYYTafwIUA/aCPDHg/VAi46rk2+aN5 iKDQ== X-Gm-Message-State: AJcUuke4U0mOfJ+eKHQYaL9iEv3kFRelDkmhfSmVaid1TKx2GJtELo1S cvkUAHWtvxXfYR2gWzDNBLpDrXtmPs2l/Q== X-Received: by 2002:a1c:c60e:: with SMTP id w14mr106765wmf.18.1547485330756; Mon, 14 Jan 2019 09:02:10 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:2ced:5cd0:34f4:7bab]) by smtp.gmail.com with ESMTPSA id h184sm17224319wmf.0.2019.01.14.09.02.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 09:02:09 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 14 Jan 2019 18:01:59 +0100 Message-Id: <20190114170205.9748-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190114170205.9748-1-ard.biesheuvel@linaro.org> References: <20190114170205.9748-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms 2/8] Silicon/SynQuacer/OpteeRngDxe: fix 32-bit build X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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 --- 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 --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);