Thread (3 messages) flat view 3 messages, 2 authors, 2011-05-16
DORMANTno replies

[PATCH 1/1] ARM: thumb: Fix thumb mode compilation problems.

From: Russell King - ARM Linux <hidden>
Date: 2011-05-16 09:26:51

On Fri, May 13, 2011 at 12:58:58PM -0700, Vadim Bendebury wrote:
quoted hunk ↗ jump to hunk
@@ -99,15 +99,24 @@ void __naked set_fiq_regs(struct pt_regs *regs)
 	register unsigned long tmp;
 	asm volatile (
 	"mov	ip, sp\n\
-	stmfd	sp!, {fp, ip, lr, pc}\n\
+	sub	sp, sp, #8\n\
+	stmfd	sp!, {fp, ip}\n\
+	str	lr, [sp, #8]\n\
+	str	pc, [sp, #12]\n\
This breaks the ARM mode backtracing.  ARM mode stack frames must be created
using the three instructions given in the original.

Do we really have any Thumb-2 capable CPUs using FIQ support?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help