From patchwork Sat Apr 14 15:28:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 152516 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1560AB6FEA for ; Sun, 15 Apr 2012 01:28:46 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 170B9280A1; Sat, 14 Apr 2012 17:28:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wPiCYUR6nksg; Sat, 14 Apr 2012 17:28:43 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AEC74280A2; Sat, 14 Apr 2012 17:28:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DCBD9280A2 for ; Sat, 14 Apr 2012 17:28:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oPO2tRgLX0uZ for ; Sat, 14 Apr 2012 17:28:40 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by theia.denx.de (Postfix) with ESMTPS id 3999B280A1 for ; Sat, 14 Apr 2012 17:28:38 +0200 (CEST) Received: by eeke51 with SMTP id e51so1067556eek.3 for ; Sat, 14 Apr 2012 08:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DS1GyOmOZ65joA1iE3H1PcDFYGe7NEA+xUMl/I3egRE=; b=yXH1MnQNdZ7Ofc2yukuFpH28P4K4in/H3xTcXJ7XziuMM8Sxd4MF12Xf+bWY5u/Xt6 /GkqFEMQ0Qk/e/CX+wwpBUZBorX3EAnjoSQYBSkimQFWNLbzNrkQhWH59JUGJMlNw4eR ciFFkXgxLVRWuPj6XtKBWsFxU4EuHJpbpO+oWtC2e5RhLvOaLFvwkqHLjK8xlR1d77ch YdYmo0G7RgcLsRkqBdEeugreDI+8xfumyyxyTr6vR7pOy7oJs8DDA8aGWybV5YecwW+j JLtvtXU4geHRVkfOeg3pfKknxHtvo2AY1PprzhEc2qaNIYAtW5UdumsQXTDYroVPIv9u PTLg== MIME-Version: 1.0 Received: by 10.213.33.209 with SMTP id i17mr408262ebd.76.1334417318364; Sat, 14 Apr 2012 08:28:38 -0700 (PDT) Received: by 10.213.4.131 with HTTP; Sat, 14 Apr 2012 08:28:38 -0700 (PDT) In-Reply-To: References: <1334158122-15219-1-git-send-email-festevam@gmail.com> <20120411194925.26CEC200239@gemini.denx.de> <20120411213625.3572A200239@gemini.denx.de> <4F8850CF.1010201@googlemail.com> <4F898CA5.8070308@denx.de> Date: Sat, 14 Apr 2012 12:28:38 -0300 Message-ID: From: Fabio Estevam To: stefano babic Cc: Fabio Estevam , u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH] mx6qsabresd: Add basic support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de On Sat, Apr 14, 2012 at 12:24 PM, Fabio Estevam wrote: > Something like the patch below? (Build tested only - no hardware handy > right now) Sorry, I meant the patch below: --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -40,6 +40,8 @@ #define PRINTF(fmt,args...) #endif +DECLARE_GLOBAL_DATA_PTR; + static int mod_mem(cmd_tbl_t *, int, int, int, char * const []); /* Display values from last command. @@ -656,8 +658,10 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, cha if (argc > 1) start = (ulong *)simple_strtoul(argv[1], NULL, 16); - else + else { start = (ulong *)CONFIG_SYS_MEMTEST_START; + end = (ulong *)(gd->relocaddr -1 ); + } if (argc > 2) end = (ulong *)simple_strtoul(argv[2], NULL, 16);