Re: New powerpc vdso calling convention

2020-05-05 Thread Segher Boessenkool
Hi! On Wed, Apr 29, 2020 at 12:39:22PM +1000, Nicholas Piggin wrote: > Excerpts from Adhemerval Zanella's message of April 27, 2020 11:09 pm: > >> Right, I'm just talking about those comments -- it seems like the kernel > >> vdso should contain an .opd section with function descriptors in it for

Re: [musl] Re: New powerpc vdso calling convention

2020-04-29 Thread Michael Ellerman
Rich Felker writes: > On Sat, Apr 25, 2020 at 08:56:54PM +1000, Nicholas Piggin wrote: >> >> The ELF v2 ABI convention would suit it well, because the caller already >> >> requires the function address for ctr, so having it in r12 will >> >> eliminate the need for address calculation, which suits

Re: New powerpc vdso calling convention

2020-04-29 Thread Adhemerval Zanella
On 28/04/2020 23:39, Nicholas Piggin wrote: > Excerpts from Adhemerval Zanella's message of April 27, 2020 11:09 pm: >> >> >> On 26/04/2020 00:41, Nicholas Piggin wrote: >>> Excerpts from Rich Felker's message of April 26, 2020 9:11 am: On Sun, Apr 26, 2020 at 08:58:19AM +1000, Nicholas Pig

Re: New powerpc vdso calling convention

2020-04-28 Thread Nicholas Piggin
Excerpts from Adhemerval Zanella's message of April 27, 2020 11:09 pm: > > > On 26/04/2020 00:41, Nicholas Piggin wrote: >> Excerpts from Rich Felker's message of April 26, 2020 9:11 am: >>> On Sun, Apr 26, 2020 at 08:58:19AM +1000, Nicholas Piggin wrote: Excerpts from Christophe Leroy's mes

Re: New powerpc vdso calling convention

2020-04-27 Thread Adhemerval Zanella
On 26/04/2020 00:41, Nicholas Piggin wrote: > Excerpts from Rich Felker's message of April 26, 2020 9:11 am: >> On Sun, Apr 26, 2020 at 08:58:19AM +1000, Nicholas Piggin wrote: >>> Excerpts from Christophe Leroy's message of April 25, 2020 10:20 pm: Le 25/04/2020 à 12:56, Nicholas

Re: New powerpc vdso calling convention

2020-04-25 Thread Nicholas Piggin
Excerpts from Rich Felker's message of April 26, 2020 9:11 am: > On Sun, Apr 26, 2020 at 08:58:19AM +1000, Nicholas Piggin wrote: >> Excerpts from Christophe Leroy's message of April 25, 2020 10:20 pm: >> > >> > >> > Le 25/04/2020 à 12:56, Nicholas Piggin a écrit : >> >> Excerpts from Christophe

Re: [musl] Re: New powerpc vdso calling convention

2020-04-25 Thread Nicholas Piggin
Excerpts from Rich Felker's message of April 26, 2020 2:22 am: > On Sat, Apr 25, 2020 at 08:56:54PM +1000, Nicholas Piggin wrote: >> >> The ELF v2 ABI convention would suit it well, because the caller already >> >> requires the function address for ctr, so having it in r12 will >> >> eliminate the

Re: New powerpc vdso calling convention

2020-04-25 Thread Rich Felker
On Sun, Apr 26, 2020 at 08:58:19AM +1000, Nicholas Piggin wrote: > Excerpts from Christophe Leroy's message of April 25, 2020 10:20 pm: > > > > > > Le 25/04/2020 à 12:56, Nicholas Piggin a écrit : > >> Excerpts from Christophe Leroy's message of April 25, 2020 5:47 pm: > >>> > >>> > >>> Le 25/04/

Re: New powerpc vdso calling convention

2020-04-25 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of April 25, 2020 10:20 pm: > > > Le 25/04/2020 à 12:56, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of April 25, 2020 5:47 pm: >>> >>> >>> Le 25/04/2020 à 07:22, Nicholas Piggin a écrit : As noted in the 'scv' thread, powerp

Re: [musl] Re: New powerpc vdso calling convention

2020-04-25 Thread Rich Felker
On Sat, Apr 25, 2020 at 08:56:54PM +1000, Nicholas Piggin wrote: > >> The ELF v2 ABI convention would suit it well, because the caller already > >> requires the function address for ctr, so having it in r12 will > >> eliminate the need for address calculation, which suits the vdso data > >> page ac

Re: New powerpc vdso calling convention

2020-04-25 Thread Christophe Leroy
Le 25/04/2020 à 12:56, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of April 25, 2020 5:47 pm: Le 25/04/2020 à 07:22, Nicholas Piggin a écrit : As noted in the 'scv' thread, powerpc's vdso calling convention does not match the C ELF ABI calling convention (or the prop

Re: New powerpc vdso calling convention

2020-04-25 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of April 25, 2020 5:47 pm: > > > Le 25/04/2020 à 07:22, Nicholas Piggin a écrit : >> As noted in the 'scv' thread, powerpc's vdso calling convention does not >> match the C ELF ABI calling convention (or the proposed scv convention). >> I think we could im

Re: New powerpc vdso calling convention

2020-04-25 Thread Christophe Leroy
Le 25/04/2020 à 07:22, Nicholas Piggin a écrit : As noted in the 'scv' thread, powerpc's vdso calling convention does not match the C ELF ABI calling convention (or the proposed scv convention). I think we could implement a new ABI by basically duplicating function entry points with different

Re: [musl] New powerpc vdso calling convention

2020-04-24 Thread Rich Felker
On Sat, Apr 25, 2020 at 03:22:27PM +1000, Nicholas Piggin wrote: > As noted in the 'scv' thread, powerpc's vdso calling convention does not > match the C ELF ABI calling convention (or the proposed scv convention). > I think we could implement a new ABI by basically duplicating function > entry po

New powerpc vdso calling convention

2020-04-24 Thread Nicholas Piggin
As noted in the 'scv' thread, powerpc's vdso calling convention does not match the C ELF ABI calling convention (or the proposed scv convention). I think we could implement a new ABI by basically duplicating function entry points with different names. The ELF v2 ABI convention would suit it well,