[PATCH 1/5] arm: LLVMLinux: Add current_stack_pointer macro for ARM

Måns Rullgård mans at mansr.com
Fri Sep 6 18:12:05 EDT 2013


behanw at converseincode.com writes:

> +#define current_stack_pointer ({ \
> +	unsigned long current_sp; \
> +	asm ("mov %0, r13" : "=r" (current_sp)); \
> +	current_sp; \
> +})

Why do you use 'r13' rather than the more common 'sp' alias?

-- 
Måns Rullgård
mans at mansr.com



More information about the linux-arm-kernel mailing list