Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1405857

Re: [PATCH] powerpc: inline current_stack_pointer()

From Christophe Leroy <christophe.leroy@c-s.fr>
Newsgroups linux.kernel
Subject Re: [PATCH] powerpc: inline current_stack_pointer()
Date 2016-05-24 07:50 +0200
Message-ID <rCdo6-7F4-13@gated-at.bofh.it> (permalink)
References <rBTIJ-3A5-5@gated-at.bofh.it> <rC5gS-2zt-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Le 23/05/2016 à 22:22, Segher Boessenkool a écrit :
> 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.
>
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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] powerpc: inline current_stack_pointer() Christophe Leroy <christophe.leroy@c-s.fr> - 2016-05-23 10:50 +0200
  Re: [PATCH] powerpc: inline current_stack_pointer() Segher Boessenkool <segher@kernel.crashing.org> - 2016-05-23 23:10 +0200
    Re: [PATCH] powerpc: inline current_stack_pointer() Christophe Leroy <christophe.leroy@c-s.fr> - 2016-05-24 07:50 +0200
      Re: [PATCH] powerpc: inline current_stack_pointer() Segher Boessenkool <segher@kernel.crashing.org> - 2016-05-24 08:10 +0200
  Re: [PATCH] powerpc: inline current_stack_pointer() Gabriel Paubert <paubert@iram.es> - 2016-05-24 08:50 +0200
    Re: [PATCH] powerpc: inline current_stack_pointer() Paul Mackerras <paulus@ozlabs.org> - 2016-05-25 05:50 +0200

csiph-web