From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: ALg8bN65h3wnKVFlQiIHP1RpJKBqRsG0wWVGUe0WeFxiqT/4hvkJZbl2eX0bGZPHdbKaEyKZc3IZHQ== 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: [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: , X-List-Received-Date: Mon, 14 Jan 2019 17:02:12 -0000 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(-) 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); -- 2.17.1