public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] arm: LLVMLinux: Use __builtin_frame_address instead of named registers
@ 2013-09-06 21:42 behanw at converseincode.com
  2013-09-06 21:42 ` [PATCH] arm: LLVMLinux: Calculate pt_regs address from fp behanw at converseincode.com
  0 siblings, 1 reply; 4+ messages in thread
From: behanw at converseincode.com @ 2013-09-06 21:42 UTC (permalink / raw)
  To: linux-arm-kernel

From: Behan Webster <behanw@converseincode.com>

The LLVMLinux Project is working to be able to build the Linux kernel with
clang/LLVM. With the release of LLVM 3.3 clang is now able to compile the Linux
kernel with a number of small patches (available from the LLVMLinux git repo).

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.

Behan Webster (1):
  arm: LLVMLinux: Calculate pt_regs address from fp

 arch/arm/include/asm/ptrace.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
1.8.1.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-06 23:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 21:42 [PATCH] arm: LLVMLinux: Use __builtin_frame_address instead of named registers behanw at converseincode.com
2013-09-06 21:42 ` [PATCH] arm: LLVMLinux: Calculate pt_regs address from fp behanw at converseincode.com
2013-09-06 22:18   ` Russell King - ARM Linux
2013-09-06 23:02     ` Behan Webster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox