From patchwork Thu Nov 26 11:34:31 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 63142 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 nAQBYZ1B019479 for ; Thu, 26 Nov 2009 11:34:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751237AbZKZLe2 (ORCPT ); Thu, 26 Nov 2009 06:34:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751261AbZKZLe2 (ORCPT ); Thu, 26 Nov 2009 06:34:28 -0500 Received: from mail.renesas.com ([202.234.163.13]:45673 "EHLO mail04.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751237AbZKZLe2 (ORCPT ); Thu, 26 Nov 2009 06:34:28 -0500 X-AuditID: ac140387-00000004000005fd-eb-4b0e67c7480d Received: from guardian03.idc.renesas.com ([172.20.8.202]) by mail04.idc.renesas.com (sendmail) with ESMTP id nAQBYUFM029684; Thu, 26 Nov 2009 20:34:30 +0900 (JST) Received: (from root@localhost) by guardian03.idc.renesas.com with id nAQBYVK3002698; Thu, 26 Nov 2009 20:34:31 +0900 (JST) Received: from mta04.idc.renesas.com (localhost [127.0.0.1]) by mta04.idc.renesas.com with ESMTP id nAQBYV1l019819; Thu, 26 Nov 2009 20:34:31 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KTP00JYNS5IAM@ims05.idc.renesas.com>; Thu, 26 Nov 2009 20:34:30 +0900 (JST) Date: Thu, 26 Nov 2009 20:34:31 +0900 From: Kuninori Morimoto Subject: [PATCH 1/2 v2] sh: mach-ecovec24: 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-ecovec24/mach/romimage.h b/arch/sh/include/mach-ecovec24/mach/romimage.h index 1c8787e..6c670af 100644 --- a/arch/sh/include/mach-ecovec24/mach/romimage.h +++ b/arch/sh/include/mach-ecovec24/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 : +2 : .long P2SEG - P1SEG /* cached_to_uncached */ +3 :