Commit 0abc08ba authored by Behan Webster's avatar Behan Webster Committed by Russell King
Browse files

ARM: 8170/1: Add global named register current_stack_pointer for ARM

Define a global named register for current_stack_pointer. The use of this new
variable guarantees that both gcc and clang can access this register in C code.
Signed-off-by: default avatarBehan Webster <>
Reviewed-by: default avatarJan-Simon Möller <>
Reviewed-by: default avatarMark Charlebois <>
Acked-by: default avatarWill Deacon <>
Acked-by: default avatarNicolas Pitre <>
Signed-off-by: default avatarRussell King <>
parent 2d605a30
......@@ -100,6 +100,11 @@ struct thread_info {
#define init_thread_info (init_thread_union.thread_info)
#define init_stack (init_thread_union.stack)
* how to get the current stack pointer in C
register unsigned long current_stack_pointer asm ("sp");
* how to get the thread information struct from C
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment