Re: [RFC PATCH v2 02/10] lib: vdso: move call to fallback out of common code.

2019-12-24 Thread Andy Lutomirski
> On Dec 24, 2019, at 7:41 PM, christophe leroy wrote: > >  > >> Le 24/12/2019 à 03:24, Andy Lutomirski a écrit : >>> On Mon, Dec 23, 2019 at 6:31 AM Christophe Leroy >>> wrote: >>> >>> On powerpc, VDSO functions and syscalls cannot be implemented in C >>> because the Linux kernel ABI

Re: [RFC PATCH v2 02/10] lib: vdso: move call to fallback out of common code.

2019-12-24 Thread christophe leroy
Le 24/12/2019 à 03:24, Andy Lutomirski a écrit : On Mon, Dec 23, 2019 at 6:31 AM Christophe Leroy wrote: On powerpc, VDSO functions and syscalls cannot be implemented in C because the Linux kernel ABI requires that CR[SO] bit is set in case of error and cleared when no error. As this

Re: [RFC PATCH v2 02/10] lib: vdso: move call to fallback out of common code.

2019-12-23 Thread Andy Lutomirski
On Mon, Dec 23, 2019 at 6:31 AM Christophe Leroy wrote: > > On powerpc, VDSO functions and syscalls cannot be implemented in C > because the Linux kernel ABI requires that CR[SO] bit is set in case > of error and cleared when no error. > > As this cannot be done in C, C VDSO functions and

[RFC PATCH v2 02/10] lib: vdso: move call to fallback out of common code.

2019-12-23 Thread Christophe Leroy
On powerpc, VDSO functions and syscalls cannot be implemented in C because the Linux kernel ABI requires that CR[SO] bit is set in case of error and cleared when no error. As this cannot be done in C, C VDSO functions and syscall'based fallback need a trampoline in ASM. By moving the fallback