From patchwork Wed Nov 7 15:00:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 150401 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5273690ljp; Wed, 7 Nov 2018 07:03:36 -0800 (PST) X-Google-Smtp-Source: AJdET5e9pc0sN2gc8Ljf+vYBz497ylt0yThEwStGYKFr8ZjRDLzPIApt8TD+NKcCqNLCrthFYwLd X-Received: by 2002:a17:906:3b4b:: with SMTP id h11-v6mr357680ejf.183.1541603015969; Wed, 07 Nov 2018 07:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541603015; cv=none; d=google.com; s=arc-20160816; b=IBntG+hR/t6quW9BjTKQKApvJiS48udR4C+kVGx+q702eN64rRX73l4GsZfsPjUmoT tVUbgWCzf07t02BukvOne6qya4UzfNwduqoyNz/TNO3H44yIF2qIKOw0J13x73g5FWK5 jPHi5eosQeTjYTL4R84sh4WtIRMoINAY9HRvN1bSvH1V6MGV503/7UAv0M4p6ZaUfkuh im0rSC4vCk+NUmf9Z4Bfv6jUWlOHhPyygT3bdrOfefA2k+zsaC4B4Wew1rWepgp35g+2 sUqtEXa8RgnEmkQ/jjlK5acJWyL2tSxWMLsA4Mtn3cmHdeySbj9hQI24C1W4737QUtID IruA== 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:cc:references:cms-type:in-reply-to :message-id:date:to:from:dkim-signature:dkim-filter; bh=D6QCEj1kjjRPF0DlSEzy3JfwQ9TafwspKNHu14235rY=; b=0vzTk3qI8gAT9BYg5LNswGBiwFxKHGX4DPgKSVBYt04n3CiEViF+HV/uU5vfr9VnbR 3agThkq1n2zGHTxAeKMa0dKITfkxExjeHwdZ2Nr79W2AoAGxMPyv321coJvdlB0nYftD oXUgy4erZPSaH246IljWfpfwINY8Vl+c6wSeanXz3hotJbwkMaNy+w+75xN+rm0C0kbG VGHsTsJ6WLbzzP6amLpJsiHSxuXz6/5tT7cIZzLCIrJSreQRKsc4NDsRL059ru9Rokdd hmSL21OWvLuBFsQm0GrpmNj5DXzvVAJUuKFuKYIYMUJLFWa/AweQiCYhRtgShgxfldFV 60xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=jr4SXrA4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id u8-v6si628981edd.348.2018.11.07.07.03.35; Wed, 07 Nov 2018 07:03:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=jr4SXrA4; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: by lists.denx.de (Postfix, from userid 105) id 5692DC224BE; Wed, 7 Nov 2018 15:02:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C51ECC224CC; Wed, 7 Nov 2018 15:02:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D96FEC22496; Wed, 7 Nov 2018 15:01:16 +0000 (UTC) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lists.denx.de (Postfix) with ESMTPS id F0818C224A3 for ; Wed, 7 Nov 2018 15:01:15 +0000 (UTC) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181107150115euoutp02bf00a2e0bac50197fddc47c7c770e409~k36WslQhE0369003690euoutp02y; Wed, 7 Nov 2018 15:01:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181107150115euoutp02bf00a2e0bac50197fddc47c7c770e409~k36WslQhE0369003690euoutp02y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541602875; bh=n/C+1ij3OetCA+EkiMbDsdMHr0xJRgkZ8fBkfQDVw+g=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=jr4SXrA4HrIBGS+qes7Mqak/+F58h3Erg00sXmEBCz4uTW1GMMuTTNRfT5kfD211X EQGdERr3IPcZUhKIawIq/VuUV8Vrs9jIqvuQs0a8cEsRVftcuuXNyu88fFSTpynF/g 4nFBlWYjem7WywbbMr+szIag6fKkHxlsXpgKPGEI= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181107150114eucas1p2598c8fafc1e9cfe5e8ed57b258293588~k36WTw1h92528525285eucas1p2J; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id C5.95.04294.A3EF2EB5; Wed, 7 Nov 2018 15:01:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181107150113eucas1p117128d7094b83df2346fcd8ac91651d4~k36Vnb3912023720237eucas1p1Q; Wed, 7 Nov 2018 15:01:13 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-e2-5be2fe3a8083 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 34.C4.04128.93EF2EB5; Wed, 7 Nov 2018 15:01:13 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PHT005I7WDUVY00@eusync3.samsung.com>; Wed, 07 Nov 2018 15:01:13 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Date: Wed, 07 Nov 2018 16:00:57 +0100 Message-id: <20181107150105.23165-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181107150105.23165-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLIsWRmVeSWpSXmKPExsWy7djPc7pW/x5FG+zeK2uxccZ6Vosbv9pY LZ6/u8xksfbIXXaLjiMtjBZv93ayO7B5zJt1gsXj7J0djB59W1YxBjBHcdmkpOZklqUW6dsl cGXsurmMuaCNs+LEk0dMDYwd7F2MnBwSAiYSD298Z+1i5OIQEljBKNH9fDMzhPOZUeLP9B9M MFWf921ih0gsY5RoPneeBcJpYJLYdeUTG0gVm4ChRNfbLjBbREBC4lf/VUYQm1ngGqPErO2K ILawgJPEkuYOsKksAqoSG24+BrN5BWwlFh9sYIHYJi+xesMBZhCbU8BOortnMtgyCYGPrBJb Fl1ghihykZh0/RYrhC0s8er4FqiHZCQuT+6GamhmlGifMYsdwulhlNg6ZwcbRJW1xOHjF1kh zuOTmLRtOtBUDqA4r0RHmxBEiYfEt19/2SDenMgoMWHrE+YJjJILGBlWMYqnlhbnpqcWG+Wl lusVJ+YWl+al6yXn525iBEba6X/Hv+xg3PUn6RCjAAejEg/vha0Po4VYE8uKK3MPMUpwMCuJ 8PaufhQtxJuSWFmVWpQfX1Sak1p8iFGag0VJnLea4UG0kEB6YklqdmpqQWoRTJaJg1OqgTFc +HTGHAa5TbP3vZA4MHHdLPnyNVo8XxeKHuLXO/Zz8gpmDxu1o5vu6a2NW/kstSJK+dTmUutT IdNUpDfVnNjedE/Kc/E/actZjFOVX/WKy7Lb/jpo4Z18pT22KotLyY9NTvrffIeq+3F3vt22 sPw4Y1nUhWtad689KpyRbiVSKGUxL6Jd8IQSS3FGoqEWc1FxIgDenbLmsAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJJMWRmVeSWpSXmKPExsVy+t/xq7qW/x5FG6x8ZW6xccZ6Vosbv9pY LZ6/u8xksfbIXXaLjiMtjBZv93ayO7B5zJt1gsXj7J0djB59W1YxBjBHcdmkpOZklqUW6dsl cGXsurmMuaCNs+LEk0dMDYwd7F2MnBwSAiYSn/dtArK5OIQEljBKTJnWyAqSEBJoYpI49I0L xGYTMJToetvFBmKLCEhI/Oq/ygjSwCxwg1HizvmfYJOEBZwkljR3MIHYLAKqEhtuPgazeQVs JRYfbGCB2CYvsXrDAWYQm1PATqK7ZzILxDJbiYdXzzNOYORZwMiwilEktbQ4Nz232EivODG3 uDQvXS85P3cTIzBAth37uWUHY9e74EOMAhyMSjy8GjseRguxJpYVV+YeYpTgYFYS4e1d/Sha iDclsbIqtSg/vqg0J7X4EKM0B4uSOO95g8ooIYH0xJLU7NTUgtQimCwTB6dUA+PSlbPTf5l1 xeYUzZ73VVLONzY/fkJpVmeh05dPnR2C9sXJgjJC8g/VGEVKtvPesdr1I6vE17SW61lA+UlP 4RO6k/ask5myVujgxoeLuCPOzM19JbDHU6Qk68TJLb5r/BU23Hmyx21yZcSv/T9mf/KbpfQt /qxHvnu5j8/epx+0nyn+1Hl06b0SS3FGoqEWc1FxIgDsah5IDAIAAA== X-CMS-MailID: 20181107150113eucas1p117128d7094b83df2346fcd8ac91651d4 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181107150113eucas1p117128d7094b83df2346fcd8ac91651d4 References: <20181107150105.23165-1-m.szyprowski@samsung.com> X-Mailman-Approved-At: Wed, 07 Nov 2018 15:02:17 +0000 Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [U-Boot] [PATCH 1/9] cmd: itest: add support for .q size specifier X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add support for quad (64bits) memory access. Signed-off-by: Marek Szyprowski Acked-by: Lukasz Majewski --- cmd/itest.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmd/itest.c b/cmd/itest.c index fd6f4166f1..1813a131d1 100644 --- a/cmd/itest.c +++ b/cmd/itest.c @@ -72,6 +72,11 @@ static long evalexp(char *s, int w) case 4: l = (long)(*(u32 *)buf); break; +#ifdef CONFIG_PHYS_64BIT + case 8: + l = (long)(*(unsigned long *)buf); + break; +#endif } unmap_physmem(buf, w); return l; @@ -185,6 +190,9 @@ static int do_itest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) case 1: case 2: case 4: +#ifdef CONFIG_PHYS_64BIT + case 8: +#endif value = binary_test (argv[2], argv[1], argv[3], w); break; case -2: @@ -203,5 +211,9 @@ static int do_itest(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) U_BOOT_CMD( itest, 4, 0, do_itest, "return true/false on integer compare", +#ifdef CONFIG_PHYS_64BIT + "[.b, .w, .l, .q, .s] [*]value1 [*]value2" +#else "[.b, .w, .l, .s] [*]value1 [*]value2" +#endif );