From patchwork Fri Aug 28 09:09:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye janboe X-Patchwork-Id: 44417 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7S99fRo015790 for ; Fri, 28 Aug 2009 09:09:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049AbZH1JJe (ORCPT ); Fri, 28 Aug 2009 05:09:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751060AbZH1JJe (ORCPT ); Fri, 28 Aug 2009 05:09:34 -0400 Received: from mail-pz0-f178.google.com ([209.85.222.178]:37660 "EHLO mail-pz0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbZH1JJe (ORCPT ); Fri, 28 Aug 2009 05:09:34 -0400 Received: by pzk8 with SMTP id 8so1857924pzk.22 for ; Fri, 28 Aug 2009 02:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=4ih4H2BBa97RU7j5Lm1hXVOguRgSvsZ/CR0Hj5cBZmE=; b=eDBkNY303Xf+HrXhZDN7J3jsugDwrKR/K+I9B1LfPfvCVkTmKBAesIgJiZgSPNOxZ0 NcB8ApG3OTCbikfEtD5bj3A6N1LVNw6fqLsmZWQmZXU1SpuEBAEZEMZB4W2XjPUOuZkn 1qOBvXO0xMC3U/vfhAU+zS3zBUowfT5jGtGnk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=jWnOQ8hc4v/QDJXe4JzSER9SW0fn3yOPCKR43wq7xqSPR1AWrkaxj7NYNsqgvpjazk CfCmKvEaKTo/KPfIA4tPHJIi6txzPjS0FL0e0fheJs/r9swOYKovEOi9JjZEU1S8L0eE hNlTi23v6AZKvaSyLuZfgC6CeMmfx9t0AGcyE= MIME-Version: 1.0 Received: by 10.142.195.13 with SMTP id s13mr47461wff.3.1251450576412; Fri, 28 Aug 2009 02:09:36 -0700 (PDT) Date: Fri, 28 Aug 2009 17:09:36 +0800 Message-ID: Subject: [PATCH] flush the right address after memcpy in omap_sram_push From: ye janboe To: paul@pwsan.com, tony@atomide.com, khilman@deeprootsystems.com Cc: linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Signed-off-by: janboe --- arch/arm/plat-omap/sram.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index f2b0fa6..f549d8a 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -270,7 +270,8 @@ void * omap_sram_push(void * start, unsigned long size) omap_sram_ceil -= size; omap_sram_ceil = ROUND_DOWN(omap_sram_ceil, sizeof(void *)); memcpy((void *)omap_sram_ceil, start, size); - flush_icache_range((unsigned long)start, (unsigned long)(start + size)); + flush_icache_range((unsigned long)omap_sram_ceil, + (unsigned long)(omap_sram_ceil + size)); return (void *)omap_sram_ceil; }