From patchwork Mon Jan 14 17:02:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155567 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3883897jaa; Mon, 14 Jan 2019 09:02:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ac0wDjh2dOTwckdlTxO5e5jh5S2kvupwrrOp+7rDj4e8Cx7bwIEuOlYq4YMutG/YmdXSm X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr26745779plp.34.1547485352281; Mon, 14 Jan 2019 09:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547485352; cv=none; d=google.com; s=arc-20160816; b=sqdStw9tZIaHvAky4WmmqE0qIX6pbCykiRAIEyd/sDJ6qPEPh9sGySu3DUYWkc9n4+ gKNlvTc/K+mIsYUDchZpq5Mlf4L/y5z/mka97dDkMN2Zd84rRmECCQWbz/DPOMJYhkcI i9ffk9PGn0R29mnebEpPSgdCWCcsYH+ZrC+8m/u27kI/F1tdWenpSVqS2oNYtfQyLheK bCp4arWBH+8JeIZku9X6b7SAgQ6PC1v+qVeNQeZD/IQU9DU2WViYOkOzBMNPUhIvpPy3 /wqbILLEKS0BoFMze/3Da7YhqQJZpCltC1Cj6yCQxz+iHnjD+4EV7UIUn6AhDZzJskYZ Mnfw== 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=HBB/UvbQH4EUh42zsP0BicKb+GX80iiXMVHNMoGL9jA=; b=T+vSBI+5jkBZPBlHHpGCmYNewvKnkYueLs9/5zDYKl8FIylU9n7Prw9SrBZLCt/0L0 5suMmXZzj0R+BcN3iHHNZDdbPV+bd3FNwbEwj9r4fU3SGkNG974/HPV3Jq2C2ClSvukF Mz6VlTsYO8oNg5/dAT6llIgmCF3GWrlWFtrZYo2cESGzeioLdO4dREX72kJIrWjO85sN C5RWyk38iFOTLAUGqXzWhzmc6JKpTM+WqwcxXcaRjsSHyqmeY6XTXrZM+z/ejuVUzMaI Wm+4G68Cj9+/brDrOqoL+s3295t6UiHCDk7OU/7roQGFpu90/uInIBSpP7Xp6sz3c3zu ngCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CFdCWSX1; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id k5si710428pfi.176.2019.01.14.09.02.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 09:02:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CFdCWSX1; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 98060211B5A23; Mon, 14 Jan 2019 09:02:17 -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::342; helo=mail-wm1-x342.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) (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 3D532211B5A23 for ; Mon, 14 Jan 2019 09:02:16 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id y8so284903wmi.4 for ; Mon, 14 Jan 2019 09:02:16 -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=NIcCJ6CXaBAfFlxAnQHuGfOd7hyxoWV5HIol5HWwRK8=; b=CFdCWSX1N18APfc2vthPNW1OHXOSp24ao+EJtx/6Hp7wsN2di8lwqM7y1FqHrO4U7z Vpwt+oHx/morrmkft1XBwKUxIe96dDebQEVULwsuEifsoGIFPygtX72ucTuCBjULotqo Rc70q8aw/zBZ2NcDioL52nnjuI35rlM6hUjhA= 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=NIcCJ6CXaBAfFlxAnQHuGfOd7hyxoWV5HIol5HWwRK8=; b=uRQ48bw3uXCT8XVhyAFxGb3thxgDVRhrTld/4DHnegIh8TnlSRz8t1F1rpYPjP/bN2 Az9fgTAftjiR0x1ZZqBATBKk8uSSXdHvtVHlzb0KoAJAdFfeYSngIOmHt09GXW4Q5xsa 0Wg+bP4YsXhNed3rv/d2ebbf6DOrIO7yqAwg0y9izX+wovVeBMRATRv+PCec/LadhhCJ ljtTq1AqVj6A2lPXgCbJbIXR/Hnxxzhivb2mMqlYHPtlAOxDXT4PZwBw8VQqtJPnin/Q YMPo0joaZLOtKGKZSahprrLqJIQqdpghPzkXlN0GAFNhZMN1OWOCrV2lBdWaMDSvUJI5 blMA== X-Gm-Message-State: AJcUukfN/m1+bPMg+ximqzQGXfY0oEI2JMDiTEfRdxHbnFpxNAH/Outr oV1CFgT15ZN/BRL/Nd5Xf4l6d9+vLZCJIA== X-Received: by 2002:a1c:8d12:: with SMTP id p18mr65912wmd.31.1547485334511; Mon, 14 Jan 2019 09:02:14 -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.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 09:02:13 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Mon, 14 Jan 2019 18:02:02 +0100 Message-Id: <20190114170205.9748-6-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 5/8] Silicon/SynQuacerMemoryInitPeiLib: 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" Add a missing intermediate UINTN case to fix the 32-bit build. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.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/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c b/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c index 3955b6df84a0..19151b93d571 100644 --- a/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c +++ b/Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.c @@ -201,7 +201,7 @@ CheckCapsule ( // Coalesce the capsule into unused memory. CreateState() below will copy // it to a properly allocated buffer. // - *CapsuleBuffer = (VOID *)PcdGet64 (PcdSystemMemoryBase); + *CapsuleBuffer = (VOID *)(UINTN)PcdGet64 (PcdSystemMemoryBase); *CapsuleBufferLength = UefiMemoryBase - PcdGet64 (PcdSystemMemoryBase); PeiServicesSetBootMode (BOOT_ON_FLASH_UPDATE);