Thread (7 messages) 7 messages, 5 authors, 2016-05-31

Re: [PATCH] powerpc: inline current_stack_pointer()

From: Christophe Leroy <hidden>
Date: 2016-05-24 05:40:12
Also in: lkml

Le 23/05/2016 à 22:22, Segher Boessenkool a écrit :
On Mon, May 23, 2016 at 10:46:02AM +0200, Christophe Leroy wrote:
quoted
+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.
Does it mean that the following declaration in 
arch/powerpc/include/asm/paca.h is wrong too ?

register struct paca_struct *local_paca asm("r13");

Christophe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help