From patchwork Fri Aug 28 06:12:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye janboe X-Patchwork-Id: 44391 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 n7S6Cxnu030513 for ; Fri, 28 Aug 2009 06:12:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549AbZH1GMz (ORCPT ); Fri, 28 Aug 2009 02:12:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751824AbZH1GMz (ORCPT ); Fri, 28 Aug 2009 02:12:55 -0400 Received: from mail-pz0-f178.google.com ([209.85.222.178]:47757 "EHLO mail-pz0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbZH1GMz (ORCPT ); Fri, 28 Aug 2009 02:12:55 -0400 Received: by pzk8 with SMTP id 8so1753233pzk.22 for ; Thu, 27 Aug 2009 23:12:57 -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=yxpKYoLN+bk1lMdKwq+tJ0Pmo2l9oVluVkt+xEIDl6w=; b=JY1yKN9uM0Nr4oBMAVvECVB6j5koG53Yg5RZ3CBHEkh69T9hDOWCcKgvEORxjfNIVH eXq2rD5pr822AZqryLJX8UO/VqBQZBJ5BCnzUhAwzBl5bCE3NplPiu3vHqPBmDavojux Jzfzp3hOoM3DtC1UM1+pZyyRO5PcjFc3BrsX0= 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=xjTtOVZLTSQebdOzvfbLFle4gNvP4vKR4GRIcOvJ9dtdLBlSelPJ94D0+3XbSSp/b0 +YsJjCmjHgqlJ20fpDWjQO/N0Si5RtVX8NX9D6wZS79C3+D6MMiZzEPnK/LioS+tW6OF YpBUlXnl3qjQ0xitNu3f8s4O6Wmj5OsFyc9q0= MIME-Version: 1.0 Received: by 10.142.209.13 with SMTP id h13mr38972wfg.169.1251439951966; Thu, 27 Aug 2009 23:12:31 -0700 (PDT) Date: Fri, 28 Aug 2009 14:12:31 +0800 Message-ID: Subject: [PATCH] flush the function in sdram is not correct because sram is changed. From: ye janboe To: tony@atomide.com, paul@pwsan.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 resend because little format issue. From fc5e771b808b5bf094846051a1c59c7e5e8ec149 Mon Sep 17 00:00:00 2001 From: janboe Date: Fri, 28 Aug 2009 13:50:57 +0800 Subject: [PATCH] flush the function in sdram is not correct because sram is changed. Signed-off-by: janboe --- arch/arm/plat-omap/sram.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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; }