From patchwork Fri Sep 1 13:08:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 111484 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp904814ybm; Fri, 1 Sep 2017 06:04:44 -0700 (PDT) X-Received: by 10.84.132.73 with SMTP id 67mr2328981ple.449.1504271084896; Fri, 01 Sep 2017 06:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504271084; cv=none; d=google.com; s=arc-20160816; b=EnqTeL1riy6Mbh/CtiBiKcA4yHs7S4OzEF8ln9ALnCI9nUDzCZRxuFXU/B1pqg1NoZ hYDiTz1cXkCjSGt195NQ9fe/Nm1XFRsaRpRTFdIK6OeI5m2satS/cEkwvVDPIprjuSkn pFEEudvcT/+S+uBLvSbsOGqh23oFp6bpjcJ6xjbJzlFtj8iMEDuP0xKP3mlTQc1f8jEw DQOjPNTYmA+uzSbyxy0NP0i0dNRr2liYedWQnuWbe5dSQ9CKqmTpPXprhFjEH01GQ358 PwAqKERhkhbtAIY2WAKT4XsIhzxjz/sPg1RlD7d/EjBjkRMYDsqCMx+RLmomZih/1wYE XR3w== 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:cc :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:arc-authentication-results; bh=b7fZ7h474qW1x5zS1I0I4AlZ8o9qW1IdRfaQS7qvI40=; b=rS6S1w7DIAjPDGT3UIWGNVU6UkH6Rxzxj3skhzfukDzTdER2hv/6GQSei+X1Wqa/1A rUX6/j7lSizz2Y22ebFhEX4i/0M0c5+h0ZjOxffY/rl1kMIa0UJ9IWXlq/R6qPk6TZsQ VNBUJLLse03PRx+usSbG5VTvI9uN8Lb7jAxmHcJG4r7//ZTeWV1me8cX8upbH0n/osZH cZ8jK4JOdqeEXmbabLeCi88tjdeSuBSt1ARUGoaub4Uz+rvaZuetB+0sYa7D8pF/rGF0 PoGE4m9YajZWdM+K+KsHePZrlMDcNjBchyjBvGLm6uHWfrQC6riKWSJqC7+eHlxB9L+F SCfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=yf1vdVv0; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id s23si111106pfe.16.2017.09.01.06.04.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:44 -0700 (PDT) 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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=yf1vdVv0; 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 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B955E21E2BE3E; Fri, 1 Sep 2017 06:01:48 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (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 0CADF21D1E2E7 for ; Fri, 1 Sep 2017 06:01:47 -0700 (PDT) Received: by mail-lf0-x235.google.com with SMTP id a126so691969lfa.0 for ; Fri, 01 Sep 2017 06:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oHhmTu8pdge4mIH+mWlIXF4ZczpC53TcHkV+Jsz5sOg=; b=yf1vdVv0J9PRPdWdT7ukuB1OSjJHEJ+aAAyKy2Iws5j6zgw9EslK3T+yGkQ+ytk0V+ opyWP7y8d1om9ntY0aMNr6/mnWdNlRtrBIAt83qj/3d/loXEoQ/x91grP9L7gq2VNPZT zjWdf2MD+ELTnqChT/p/1tB0Ygih9/ikJVjXqpZqPDXw2etSny6umv7bJrEasWEZz4uq pUStJIIs9ONsNxfXYXlUBe5xrvyKEvf1Lkm20Ue/AgmshReMbRGUWgy/P1G/Wkf6R7W6 MNcq+qDK6CXxvVNYR3/fQLXGdmyTwls7X5COOlEsEWAX8I3FfRYDhqBuT3jHhCocZeJc 4oMg== 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=oHhmTu8pdge4mIH+mWlIXF4ZczpC53TcHkV+Jsz5sOg=; b=qw3kyYDSY7l98hsUzrAr0Svf4O47ubG7L/UzGN8/xU21vCljsTndEZ03nxdnwocRWf 3ymvtcDRHdVnCjT52DJsz4ShPq8930lVq45KrvgXPBaFJJPra7igCMqj28cVm69L7f6W Nd1UNmcVVcYnhG6ffFZp6OWV86BQmyRKxlYMejmwo+5gULruwDWLXYphsvjeV4DU890s 1sbDai1ZQSlb3DQQzpMr0f3EBnSn9cXIHDUQ69sb3G8byBjjkAKmz1beBMDg/Z7DSkLB Xp8uofLopGxyGY+u6GOdbzGJnfUsMuDthyVEPKe8OZffl7e0Fu4nIRI1qRKB2fP3hTQq vm2Q== X-Gm-Message-State: AHPjjUiS5lkE6xFTBqXE9pO4Cc4AYqZ6oIbWBOG+RcHAm/tJ2Qat1dql xw8ep804Ir5R0jsbqu/D8w== X-Google-Smtp-Source: ADKCNb6XlR4bCNQehhxQaTHD2pY6pjfKmOPbFhdyvOODyOEneZC/lJ5oy2ZDsKq1VE0gp7rlIVOGjQ== X-Received: by 10.25.228.84 with SMTP id b81mr764016lfh.26.1504271069504; Fri, 01 Sep 2017 06:04:29 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m129sm21754lfg.26.2017.09.01.06.04.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:28 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Fri, 1 Sep 2017 15:08:18 +0200 Message-Id: <1504271303-1782-7-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1504271303-1782-1-git-send-email-mw@semihalf.com> References: <1504271303-1782-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 06/11] Applications/SpiTool: Fix bug in error test X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, agraf@suse.de, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel Fix a misplaced closing parenthesis. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c index b6dc54f..e6e1007 100644 --- a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c +++ b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c @@ -378,7 +378,7 @@ EFI_STATUS Status; FilePath = (CHAR16 *) FileStr; Status = ShellIsFile (FilePath); // When read file into flash, file doesn't have to exist - if (EFI_ERROR(Status && !(Flag & READ_FILE))) { + if (EFI_ERROR (Status) && !(Flag & READ_FILE)) { Print (L"sf: Wrong FilePath parameter!\n"); return SHELL_ABORTED; } From patchwork Fri Sep 1 13:08:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 111485 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp904877ybm; Fri, 1 Sep 2017 06:04:48 -0700 (PDT) X-Received: by 10.98.158.12 with SMTP id s12mr2231034pfd.246.1504271088017; Fri, 01 Sep 2017 06:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504271088; cv=none; d=google.com; s=arc-20160816; b=Nv18W5wmZx2EYpNUMOqLK8LGOmYwvjI835j4EKdKPVL+N1yqz6kP2yYYzu/iUcSnGB pz2g0O+u7l8vTsQrMtHZr1QR0k5TbFi2xeLvXj1gzzQSlCLpRpXee/zE4VukvZkGdoNI WT66OQuEGJG3FH4RliDFlUr6hf/mQfewG60bH+d4Hof4gt0XyE8oGi8ABc8+j/jbFqhL hrq79mCti+5jCDLeRIJLg1Y1RjvhNNxZgN6XD5a/kw+z2vxGH9YcpUI03QDouYn2wc/j s0tLJEoRKT6Ur7yyNAywksZCASPj2JuHmMbvFU8ofTD2G/nlfSWb33270AULp9DqMsOs 7O+g== 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:cc :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:arc-authentication-results; bh=B+uR9Ry87/CWGW0wKlMAYiTautf1JuTmhILtmxHyHq0=; b=GIQ0Ei+CkaX7sZPQxRzsQbYNMxuVqfviTjHncaNXiEk0nwkwiZAuKaSdww08cIfnvf SB9kR3iAooxHrnHDnirslfYXWlpHD+FY59Bs83PyuxxIlTzRsgCmiself+H6R2BzzBmG ca5xtlsSlBPZt9JVLgXhQIExoqIwVNZuiQGVIMrIiiwoxsu73y+4vn3fTEYPG6B4C5qV qP1ZRcgqLBcxHBWr/m5ec/UhDis0GKuimC1yZnBJ6kxuEtYLF2K5Eu9g2fNTQl1DZfJ0 HPfWZuy0/IoYvTIzTG6YFKkGTZ5dl3MUHFADk2rVWItOl91hRF9mLwJjfIec8BGYUTm2 pt7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=Fp1ihyQZ; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id o18si84048pfe.308.2017.09.01.06.04.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:47 -0700 (PDT) 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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=Fp1ihyQZ; 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 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 01EDE21E62BA0; Fri, 1 Sep 2017 06:01:50 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-lf0-x22f.google.com (mail-lf0-x22f.google.com [IPv6:2a00:1450:4010:c07::22f]) (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 5133C21E11D25 for ; Fri, 1 Sep 2017 06:01:48 -0700 (PDT) Received: by mail-lf0-x22f.google.com with SMTP id d202so557139lfd.5 for ; Fri, 01 Sep 2017 06:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h06660dwlWHHSH7YQcU/Z4bWewYIwED8BdU0volT4Uo=; b=Fp1ihyQZjA4KFjn9YuKrJXGHcm6IcEn6dFIyyNtfaqjIOEeeEAoN+R1m6uUfJL8CVv Vm+LqU7Dfawp0+vVG2WuuSex2fFPGtfecCjBeOUxuERbzb7RDBrZMJIgKZe2SxSAqbE/ xx36xE/AS22XQb9oZKVDaufsDfT3s6OQg4Pfh/WusHfn++Y3xYUuAOTA5OLr1kzXOPr8 jWlBFkQVI5SmrcfN9wP8r/wl7BYtibkhtCROII91TkBpCdSvo5LApyV23rwViQRxj7kC kw+w+vuxnUi4s7V2c2D/8s7lqLj+15OlY2J55v9HuBgMJRpgGKyvdSrom3vuSK4P1XAx NxOQ== 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=h06660dwlWHHSH7YQcU/Z4bWewYIwED8BdU0volT4Uo=; b=kxTKZPeiDhBr+36Lk1kHxwfAkYZjAw+uFybDtD9lSLQ5ek2pDDX5ehVKCYq3OzXRtg bHj/PnWV2Cvcu6A6L16yVHP5ZRE3C4ktvTXXn1tic2REi81u6B1q1Y/5kP5kkJ85VDi3 nkXdAOuuR/HJ0A3sl6fYyOrZl3eh33UuFR86kh3n5Mrp9YngypBnm7d/XVqbvA2z6OeL 1zxFLlo02W1bbJqQhgcA1ewustoOXWGY6bs825ty3XUCo29vmhuJyF3tHeNOcN7RV9XS RD6hF3t0QZXEq2oSWs+jvP0VK8pmvvWvxkmeXA4VoMyzrB67vJGvcxkaPnJNJAC3tAqO cO5A== X-Gm-Message-State: AHPjjUiU6VqhoUYsXEejJFTKdPA3KypuJjFMfS/eg24BRCdUoh4ZBVG3 16j3IYrRajlFIhoZjsRkUA== X-Google-Smtp-Source: ADKCNb6SNKTA5bq1qp/DUcDGLXnixMomq5JwTvGyADOC5r8bq5TQvARqx0Cl2frzzNduzzGDRASvGw== X-Received: by 10.25.163.74 with SMTP id m71mr930780lfe.63.1504271070916; Fri, 01 Sep 2017 06:04:30 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m129sm21754lfg.26.2017.09.01.06.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:30 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Fri, 1 Sep 2017 15:08:19 +0200 Message-Id: <1504271303-1782-8-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1504271303-1782-1-git-send-email-mw@semihalf.com> References: <1504271303-1782-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 07/11] Applications/FirmwareUpdate: Fix 32-bit issues X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, agraf@suse.de, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel Fix casting and related issues to make this code build for 32-bit ARM. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c b/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c index edb6986..0951734 100644 --- a/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c +++ b/Platform/Marvell/Applications/FirmwareUpdate/FUpdate.c @@ -172,6 +172,7 @@ PrepareFirmwareImage ( EFI_STATUS Status; UINT64 OpenMode; UINTN *Buffer; + UINT64 Size; // Parse string from commandline FileStr = ShellCommandLineGetRawValue (CheckPackage, 1); @@ -195,11 +196,13 @@ PrepareFirmwareImage ( return EFI_DEVICE_ERROR; } - Status = FileHandleGetSize (*FileHandle, FileSize); + Status = FileHandleGetSize (*FileHandle, &Size); if (EFI_ERROR (Status)) { Print (L"%s: Cannot get Image file size\n", CMD_NAME_STRING); } + *FileSize = (UINTN)Size; + // Read Image header into buffer Buffer = AllocateZeroPool (*FileSize); From patchwork Fri Sep 1 13:08:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Wojtas X-Patchwork-Id: 111486 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp904979ybm; Fri, 1 Sep 2017 06:04:52 -0700 (PDT) X-Received: by 10.101.70.207 with SMTP id n15mr2381845pgr.203.1504271092094; Fri, 01 Sep 2017 06:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504271092; cv=none; d=google.com; s=arc-20160816; b=xyhkeYg4c/a1G+lpcN4FnauZRQVcaYK5NAOt0cqNEXs4DOknC3FOw9C+F+bY+NoUbh 5daTnXEahwA1CUN3WvSpBt3nL7pMPxjs4Xr1wl0sQXfdkvRzD2sjGefT+cUuGdfPncSY QJgVPNvWqCq4DPGDb0BETZk2slTEwzrGrDPGL+7LCAKEWnXOn+tD715MBtpXM16mnIiZ ct+BFm8kzKYquPq+3i2SjzOkaIN52NZbbxqSraZEJ52EB7fYSj/mrC3srCdKRV/9Umxs yGv/Id6NRRrONn0vFfTuEMjpgUUNkQPoe4YCJcqgU7bhRa6vFdZQuGHqwux8CuBZg4qx 2QaA== 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:cc :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:arc-authentication-results; bh=zf0RvkETdpZAWPfxXWmiTYAw5jlugXlGzQdtFuyqlOQ=; b=ovqIBpQjqYc6VjSXovH9MImYT2DgYkSIvET03iauG2w9BuMD1LRm81fPXMleKg3qFH HDHsqrZhB+fi5Dw89OAXqVHInQ0uLNhLcR8VVlIJ2hk/1ZgzZ8Wrpxq2eDTUA170h7Ya lHeZ+gpMp8T1cQe/QmAmYVJMMdwofkAMvmvTiFQkHsXQ/Gp4Sdk0tv+guVoxPMT4Ahu3 yGJdEiShUMzcUPSG6tQ4SnllAAcmAUQ0rj4o2mJRfJtON1e+7fF0CHIKJG1FYRyv/UfU 6ET7tKTU3ymZsBHd3f1v/HyrDLdVY27mSs9/Gpk8kiGJ+eGiqm9I+xd4JrfpRKdVz0+R fE6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=c7Hi5NpI; 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 Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id q11si60560pgn.691.2017.09.01.06.04.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:52 -0700 (PDT) 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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=c7Hi5NpI; 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 Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 3A46021E62BA4; Fri, 1 Sep 2017 06:01:50 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (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 8036821EB88FB for ; Fri, 1 Sep 2017 06:01:49 -0700 (PDT) Received: by mail-lf0-x230.google.com with SMTP id d202so557363lfd.5 for ; Fri, 01 Sep 2017 06:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZkV+ijcaTgpaKjaOvIVyEUCautJuJbAagknAWTA1AyY=; b=c7Hi5NpIDwicF+qoYxK8ZcBvj/JSG9CGmGD8GJCkVHAeYrn3B1xNMFi78iDmfGnRZi Ccy38p1JAr0cUYloU9KwOXr1j8xV42zMnUATHWPez7fZV3xzAf6Sqy21XPzxrOL15Xz6 dGom9TkPT330vN6J0fvhkVHMXce1iDoGAo6plY5twzh6ESSEtlKcvqeoZrAFqJqJs9tt MhqhvDrvjtaxsWmBsFF2lNP005gwjH+xpYS6R0ozE3UGJfIi+DMnPYQ38BRIFKTT1/oK jlNGzlLjQyNuBjJaZ0/J/X4s0tglt4MZdrBqA1I/djy1ejFCdpSz5ZfxW5JscvL45dxA +jMw== 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=ZkV+ijcaTgpaKjaOvIVyEUCautJuJbAagknAWTA1AyY=; b=sP55RYrP1m8fKq4tMxl1QHUaRpBHnCBBSkn58dVXiJo0DfwJ38thKktORxKZ+/YSFF 4/RWoBU8Yv/qvkomKNiu8JklAl3P0wd+0OgTuRVN3YMw98i+Qg2Zj3m2fw2lxmDLMKiJ lVWGl3L2EmIi0Bw9aAGKSXXhHFn5oImTZXXHtBJPRu9J1CGpx6NSWosq3hxSaxkqx5Yj 8LtDQrX7hIAKZkjozKZodBcg2J9NRR7+FE0DGgxEsmsTM0DFL6kzzWvl0k1adu0mgwbY tXx7gbeDJMfo50m2VZ8axbM8/iv6WE6MabWMXnK6UU6hlI5pzfSOmB8JANZ8UpdllbmV Y9Wg== X-Gm-Message-State: AHPjjUhi5MGCpEKdKPlSdFUY+ycZ6sL2rTNSiVIRxKFTHWXfCKm3N2jO IdkrcpZCiSubSbDnevMpQA== X-Google-Smtp-Source: ADKCNb53vhCKuNh9yfgyp051sUuSYouOxhH/CZo0ATA8Yb8LSnqyW89t/VP/YnvxMRhzC8HxV6alAQ== X-Received: by 10.25.84.136 with SMTP id b8mr906588lfl.9.1504271072143; Fri, 01 Sep 2017 06:04:32 -0700 (PDT) Received: from enkidu.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m129sm21754lfg.26.2017.09.01.06.04.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 06:04:31 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Date: Fri, 1 Sep 2017 15:08:20 +0200 Message-Id: <1504271303-1782-9-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1504271303-1782-1-git-send-email-mw@semihalf.com> References: <1504271303-1782-1-git-send-email-mw@semihalf.com> Subject: [edk2] [platforms: PATCH 08/11] Applications/SpiTool: Fix 32-bit issues X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jinghua@marvell.com, ard.biesheuvel@linaro.org, agraf@suse.de, leif.lindholm@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" From: Ard Biesheuvel Fix casting and related issues to make this code build for 32-bit ARM. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Signed-off-by: Marcin Wojtas --- Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.8.3.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm diff --git a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c index e6e1007..ee14270 100644 --- a/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c +++ b/Platform/Marvell/Applications/SpiTool/SpiFlashCmd.c @@ -418,7 +418,7 @@ EFI_STATUS Status; } } - Buffer = (UINT8 *) Address; + Buffer = (UINT8 *)(UINTN)Address; if (FileFlag) { Buffer = FileBuffer; }