From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RmjeD-0004bn-Sf for barebox@lists.infradead.org; Mon, 16 Jan 2012 10:18:42 +0000 From: Sascha Hauer Date: Mon, 16 Jan 2012 11:18:20 +0100 Message-Id: <1326709100-24106-11-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1326709100-24106-1-git-send-email-s.hauer@pengutronix.de> References: <1326709100-24106-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 10/10] ARM omap3: make omap3_core.S thumb safe To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- arch/arm/mach-omap/omap3_core.S | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap/omap3_core.S b/arch/arm/mach-omap/omap3_core.S index dffbe99..ceb3c76 100644 --- a/arch/arm/mach-omap/omap3_core.S +++ b/arch/arm/mach-omap/omap3_core.S @@ -71,8 +71,12 @@ inval_loop1: inval_loop2: mov r9, r4 /* create working copy of max way size */ inval_loop3: - orr r11, r10, r9, lsl r5 /* factor way and cache number into r11*/ - orr r11, r11, r7, lsl r2 /* factor index number into r11 */ +ARM( orr r11, r10, r9, lsl r5 ) /* factor way and cache number into r11 */ +ARM( orr r11, r11, r7, lsl r2 ) /* factor index number into r11 */ +THUMB( lsl r6, r9, r5 ) +THUMB( orr r11, r10, r6 ) /* factor way and cache number into r11 */ +THUMB( lsl r6, r7, r2 ) +THUMB( orr r11, r11, r6 ) /* factor index number into r11 */ mcr p15, 0, r11, c7, c6, 2 /* invalidate by set/way */ subs r9, r9, #1 /* decrement the way */ bge inval_loop3 -- 1.7.8.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox