From patchwork Fri Aug 28 09:26:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye janboe X-Patchwork-Id: 44421 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 n7S9QTLC017434 for ; Fri, 28 Aug 2009 09:26:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751493AbZH1J0Z (ORCPT ); Fri, 28 Aug 2009 05:26:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751441AbZH1J0Z (ORCPT ); Fri, 28 Aug 2009 05:26:25 -0400 Received: from mail-pz0-f178.google.com ([209.85.222.178]:58216 "EHLO mail-pz0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbZH1J0Y (ORCPT ); Fri, 28 Aug 2009 05:26:24 -0400 Received: by pzk8 with SMTP id 8so1867039pzk.22 for ; Fri, 28 Aug 2009 02:26:26 -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=wiZ5QujUwCyhjp4Xmf6EGKCE7htbRvWayWdGUp17+X8=; b=P4zQmZaGd6h1Q2AuV6JfsUXWYwGJf6C7+0D4/BkLjplY4j4FjcYOOGL1WQp/u1fu76 r1WCkQ8gB02TrDeHxGfgmY4eBvspgYr7Rb7Z46MlJ5emwd1+yHOiDGr3Fsvyn1SPXSJY D7n6vD2egtQgJaDDQq2nzsfA3ouNpgZQgmzDw= 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=gWsaYJVyaAlr2AQlpa2biksasCA3hS/GuJZrQ1IRzJW8I6I4H23JuIbuaWEQJwUbDn RWJkUfx0APw/5jyNJbvJxmhh5aC8juDGHWkjPxFEQlPel0cFKAXJbDoc+VeqYq4y6GQm j2kWeRwrqxCOVOWd/ouBCZRQ9UiVidKLea6KQ= MIME-Version: 1.0 Received: by 10.142.201.10 with SMTP id y10mr49293wff.260.1251451586889; Fri, 28 Aug 2009 02:26:26 -0700 (PDT) Date: Fri, 28 Aug 2009 17:26:26 +0800 Message-ID: Subject: [PATCH] OMAP SRAM: flush the right address after memcpy in omap_sram_push From: ye janboe To: Paul Walmsley , 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 the original flush operation is to flush the function address which is copied from. But we do not change the function code and it is not necessary to flush it. Signed-off-by: janboe Acked-by: Paul Walmsley --- 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; }