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?