From patchwork Thu Aug 20 13:59:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 42937 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 n7KE4KKG018557 for ; Thu, 20 Aug 2009 14:04:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754655AbZHTODz (ORCPT ); Thu, 20 Aug 2009 10:03:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754659AbZHTODz (ORCPT ); Thu, 20 Aug 2009 10:03:55 -0400 Received: from mail-px0-f196.google.com ([209.85.216.196]:41399 "EHLO mail-px0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754655AbZHTODz (ORCPT ); Thu, 20 Aug 2009 10:03:55 -0400 Received: by pxi34 with SMTP id 34so3278744pxi.4 for ; Thu, 20 Aug 2009 07:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=L2+Je23o/2z9c8YD9cVAlbb0xLUO8IyhziAIBuoT0qA=; b=Ex4vP+5Vvc2pZrLD9RRGVZbCyGChOPZQaQkkpnUU05z56SVDPFBEKLDzMuLGGlcX6L 3IOjWgQkNn7SiPgH+CEjFVWji+gDas8M12+EPvsla+UGQnLV7TVZdVS+Pj4V963ijHAu 2+bYcxIUi528LRIRK0eswJ3osa0ilEewgbBB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=Tw0OqlvAWvE2qktqo/JrEBXATYGqbOniJ9pQeH+7dNtuanTkcYYkNZTLy/pg4Z/app sqn9DCWUGuPNlsoR0i/t9LZmpiWkm6pkIvUuuyViBnVmKn+VNZkLH4MlHPs8zG0ydfW8 3clEeRXTpuEXAjp4KIDZueYnkxpayT8uq2Zuo= Received: by 10.115.81.38 with SMTP id i38mr9376793wal.55.1250777035581; Thu, 20 Aug 2009 07:03:55 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id 21sm188332pzk.11.2009.08.20.07.03.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 Aug 2009 07:03:53 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 20 Aug 2009 22:59:26 +0900 Message-Id: <20090820135926.24000.72974.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: jump to p1 during boot on kfr2r09 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Add a P1 jump to the the kfr2r09 romimage code. With this patch applied the initial zImage assembly code will run with instruction cache enabled. Signed-off-by: Magnus Damm --- arch/sh/include/mach-kfr2r09/mach/romimage.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/include/mach-kfr2r09/mach/romimage.h +++ work/arch/sh/include/mach-kfr2r09/mach/romimage.h 2009-08-20 14:22:06.000000000 +0900 @@ -73,3 +73,16 @@ .endm #include "partner-jet-setup.txt" + + /* execute icbi after enabling cache */ + mov.l 1f, r0 + icbi @r0 + + /* jump to cached area */ + mova 2f, r0 + jmp @r0 + nop + + .align 2 +1: .long 0xa8000000 +2: