[PATCH] ARM: Fix r7/r11 confusion when CONFIG_THUMB2_KERNEL=y

Robert Richter rric at kernel.org
Mon Jul 22 09:56:39 EDT 2013


On 21.07.13 22:37:53, Will Deacon wrote:
> Ok, I think I'm with you now. I also think that a better solution would be
> to try and limit the r7/fp confusion to one place, perhaps behind something
> like:
> 
> void arm_get_current_stackframe(struct pt_regs *regs, struct stackframe *frame);

In unwind_backtrace() there is already common code to do this and also
to get it from a task_struct. This could be ripped out. I would prefer
then the following function:

 void init_stackframe(struct stackframe *frame, struct pt_regs *regs,
      		      struct task_struct *tsk)

-Robert



More information about the linux-arm-kernel mailing list