[PATCH] arm: LLVMLinux: Calculate pt_regs address from fp

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Sep 6 18:18:57 EDT 2013


On Fri, Sep 06, 2013 at 05:42:41PM -0400, behanw at converseincode.com wrote:
> From: Behan Webster <behanw at converseincode.com>
> 
> Use the frame pointer to calculate the end of the stack for current_pt_regs()
> The existing code uses the stack pointer to do this calculation.
> Using the frame pointer yeilds the same value in a more portable way.
> This change supports being able to compile the kernel with gcc and clang.

What happens when frame pointers are disabled on gcc?



More information about the linux-arm-kernel mailing list