Re: [PATCH] powerpc: inline current_stack_pointer()
From: Segher Boessenkool
Date: Mon May 23 2016 - 17:03:29 EST
On Mon, May 23, 2016 at 10:46:02AM +0200, Christophe Leroy wrote:
> +static inline unsigned long current_stack_pointer(void)
> +{
> + register unsigned long *ptr asm("r1");
> +
> + return *ptr;
> +}
Register asm is only guaranteed to work as input to inline asm. NAK.
Segher