From patchwork Thu Nov 26 11:34:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 63143 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 nAQBYZ1C019479 for ; Thu, 26 Nov 2009 11:34:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751261AbZKZLeh (ORCPT ); Thu, 26 Nov 2009 06:34:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751288AbZKZLeh (ORCPT ); Thu, 26 Nov 2009 06:34:37 -0500 Received: from mail.renesas.com ([202.234.163.13]:45710 "EHLO mail04.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751261AbZKZLeg (ORCPT ); Thu, 26 Nov 2009 06:34:36 -0500 X-AuditID: ac140387-0000000a000005fd-f6-4b0e67cb4922 Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail04.idc.renesas.com (sendmail) with ESMTP id nAQBYYCq029722; Thu, 26 Nov 2009 20:34:35 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id nAQBYZsU022355; Thu, 26 Nov 2009 20:34:35 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id nAQBYYMM016142; Thu, 26 Nov 2009 20:34:34 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KTP00JZ6S5LAM@ims05.idc.renesas.com>; Thu, 26 Nov 2009 20:34:33 +0900 (JST) Date: Thu, 26 Nov 2009 20:34:33 +0900 From: Kuninori Morimoto Subject: [PATCH 2/2 v2] sh: mach-kfr2r09: modify memory area calculation bug To: Paul Mundt Cc: Magnus , Linux-SH Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.3 (i386-msvc-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/3.02-dev (RINDOU) (2009-06-17 Rev.4261) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/include/mach-kfr2r09/mach/romimage.h b/arch/sh/include/mach-kfr2r09/mach/romimage.h index a110823..8ce989a 100644 --- a/arch/sh/include/mach-kfr2r09/mach/romimage.h +++ b/arch/sh/include/mach-kfr2r09/mach/romimage.h @@ -3,6 +3,7 @@ * the assembly code is the first code to be executed in the romImage */ +#include #include #include "partner-jet-setup.txt" @@ -11,10 +12,13 @@ icbi @r0 /* jump to cached area */ - mova 2f, r0 + mov.l 2f, r1 + mova 3f, r0 + sub r1, r0 jmp @r0 nop .align 2 -1: .long 0xa8000000 -2: +1 : .long 0xa8000000 +2 : .long P2SEG - P1SEG /* cached_to_uncached */ +3 :