Skip to content

arm: LLVMLinux: Add current_stack_pointer

[email protected] linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arm: LLVMLinux: Add current_stack_pointer macro for ARMarch/arm/include/asm/thread_info.h+9 -02 replies
1/5arm: LLVMLinux: Add current_stack_pointer macro for ARM+0 -00 replies
1/5arm: LLVMLinux: Add current_stack_pointer macro for ARM+0 -00 replies
2/5arm: LLVMLinux: use current_stack_pointer for percpuarch/arm/include/asm/percpu.h+2 -24 replies
2/5arm: LLVMLinux: use current_stack_pointer for percpu+0 -00 replies
2/5arm: LLVMLinux: use current_stack_pointer for percpu+0 -00 replies
3/5arm: LLVMLinux: Use current_stack_pointer for return_addressarch/arm/kernel/return_address.c+1 -20 replies
4/5arm: LLVMLinux: Use current_stack_pointer in save_stack_trace_tskarch/arm/kernel/stacktrace.c+1 -30 replies
5/5arm: LLVMLinux: Use current_stack_pointer in unwind_backtracearch/arm/kernel/unwind.c+1 -20 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchJan-Simon Möller
1/5R-b
1/5R-b
1/5R-b
2/5R-b
2/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] arm: LLVMLinux: Add current_stack_pointer

From: Behan Webster <[email protected]>

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).

These patches add a macro to get the current stack pointer which allows for a single place in which to do so with ASM. Before this named registers (a gcc extension) was used to get the stack pointer. Using ASM is a more portable way of getting the stack pointer which works with both gcc and clang. This macro is of the same name used in the X86 arch.

Behan Webster (5):
arm: LLVMLinux: Add current_stack_pointer macro for ARM
arm: LLVMLinux: use current_stack_pointer for percpu
arm: LLVMLinux: Use current_stack_pointer for return_address
arm: LLVMLinux: Use current_stack_pointer in save_stack_trace_tsk
arm: LLVMLinux: Use current_stack_pointer in unwind_backtrace

 arch/arm/include/asm/percpu.h      | 4 ++--
 arch/arm/include/asm/thread_info.h | 9 +++++++++
 arch/arm/kernel/return_address.c   | 3 +--
 arch/arm/kernel/stacktrace.c       | 4 +---
 arch/arm/kernel/unwind.c           | 3 +--
 5 files changed, 14 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.1.2