Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-29 Thread Nicholas Piggin
Nicholas Piggin's on August 30, 2019 1:49 am: >> This doesn't do what you think, or what you want, or what you think you >> want ;-) > > After reading gcc docs from gcc 4 to 9, I think it does. > > We want this to apply to all functions in the compilaition unit. It's > fine to use the regs tempor

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-29 Thread Nicholas Piggin
Segher Boessenkool's on August 29, 2019 9:51 pm: > On Thu, Aug 29, 2019 at 07:38:01PM +1000, Nicholas Piggin wrote: >> So... this actually seems to work. Haven't booted it, but the compiler >> seems to do what we want. > > From the GCC manual: > >After defining a global register variable, for

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-29 Thread Segher Boessenkool
On Thu, Aug 29, 2019 at 07:38:01PM +1000, Nicholas Piggin wrote: > So... this actually seems to work. Haven't booted it, but the compiler > seems to do what we want. >From the GCC manual: After defining a global register variable, for the current compilation unit: * If the register is

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-29 Thread Nicholas Piggin
Nicholas Piggin's on August 29, 2019 7:38 pm: > Christophe Leroy's on August 28, 2019 7:55 pm: >> >> >> Le 28/08/2019 à 11:49, Nicholas Piggin a écrit : >>> Christophe Leroy's on August 28, 2019 7:06 pm: Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : > Accounted for some feed

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-29 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 7:55 pm: > > > Le 28/08/2019 à 11:49, Nicholas Piggin a écrit : >> Christophe Leroy's on August 28, 2019 7:06 pm: >>> >>> >>> Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : Accounted for some feedback. Nicholas Piggin (4): powerpc: c

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Christophe Leroy
Le 28/08/2019 à 11:49, Nicholas Piggin a écrit : Christophe Leroy's on August 28, 2019 7:06 pm: Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : Accounted for some feedback. Nicholas Piggin (4): powerpc: convert to copy_thread_tls powerpc/64: remove support for kernel-mode syscall

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Nicholas Piggin
Christophe Leroy's on August 28, 2019 7:06 pm: > > > Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : >> Accounted for some feedback. >> >> Nicholas Piggin (4): >>powerpc: convert to copy_thread_tls >>powerpc/64: remove support for kernel-mode syscalls >>powerpc/64: system call remov

Re: [PATCH v2 0/4] powerpc/64: syscalls in C

2019-08-28 Thread Christophe Leroy
Le 27/08/2019 à 15:55, Nicholas Piggin a écrit : Accounted for some feedback. Nicholas Piggin (4): powerpc: convert to copy_thread_tls powerpc/64: remove support for kernel-mode syscalls powerpc/64: system call remove non-volatile GPR save optimisation powerpc/64: system call impl