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::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-Google-Smtp-Source: ALg8bN511MXIuqNpNWGaAFXWoX7vrdK6ZQqed1VWpbo1tw8d3cvYpUOQS8pSf0WoOVSr09xxMKpoeA== 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: [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: , X-List-Received-Date: Mon, 14 Jan 2019 17:02:16 -0000 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(-) 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); -- 2.17.1