On Mon, May 23, 2016 at 10:46:02AM +0200, Christophe Leroy wrote:Does it mean that the following declaration in arch/powerpc/include/asm/paca.h is wrong too ?
+static inline unsigned long current_stack_pointer(void)Register asm is only guaranteed to work as input to inline asm. NAK.
+{
+ register unsigned long *ptr asm("r1");
+
+ return *ptr;
+}