Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 25 Apr 2020 15:22:27 +1000
From: Nicholas Piggin <npiggin@...il.com>
To: linuxppc-dev@...ts.ozlabs.org, binutils@...rceware.org
Cc: libc-alpha@...rceware.org, libc-dev@...ts.llvm.org,
	musl@...ts.openwall.com, Adhemerval Zanella <adhemerval.zanella@...aro.org>,
	Rich Felker <dalias@...c.org>
Subject: New powerpc vdso calling convention

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, 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 access.

Is there a need for ELF v1 specific calls as well, or could those just be 
deprecated and remain on existing functions or required to use the ELF 
v2 calls using asm wrappers?

Is there a good reason for the system call fallback to go in the vdso 
function rather than have the caller handle it?

Thanks,
Nick

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.