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

From: Måns Rullgård
Date: Fri Sep 06 2013 - 18:20:04 EST


behanw@xxxxxxxxxxxxxxxxxx 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@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/