Thread (5 messages) flat view 5 messages, 3 authors, 2011-02-14
STALE5674d

Revision v4 of 3 in this series.

Revisions (3)
  1. v4 current
  2. v4 [diff vs current]
  3. v5 [diff vs current]

[PATCH v4 0/5] ARM: omap[34]: Thumb-2 compatibility fixes

From: Nicolas Pitre <hidden>
Date: 2011-02-14 15:00:23
Also in: linux-omap

Possibly related (same subject, not in this thread)

On Mon, 14 Feb 2011, Dave Martin wrote:
quoted hunk ↗ jump to hunk
@@ -289,8 +297,20 @@ clean_l2:
 	 *  - should be faster and will change with kernel
 	 *  - 'might' have to copy address, load and jump to it
 	 */
+#ifdef CONFIG_THUMB2_KERNEL
+	/* kernel is non-interworking : must do this from Thumb */
+	adr	r1, . + 1
+	bx	r1
+	.thumb
+#endif
 	ldr	r1, kernel_flush
Didn't you mean this instead:

	/* kernel is non-interworking : must do this from Thumb */
	adr	r1, 1f + 1
	bx	r1
	.thumb
1:	ldr	r1, kernel_flush
	...

?
 	blx	r1
+#ifdef CONFIG_THUMB2_KERNEL
+	.align
+	bx	pc
+	nop
+	.arm
Also here, the .align has the potential to introduce a zero halfword in 
the instruction stream before the bx.  What about:

	adr	r3, 1f
	bx	r3
	.align
	.arm
1:	...


Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help