Re: [PATCH v2 16/17] selftests: vdso: Make VDSO function call more generic

2024-08-26 Thread LEROY Christophe
Le 26/08/2024 à 09:37, Jason A. Donenfeld a écrit : > On Thu, Aug 22, 2024 at 09:13:24AM +0200, Christophe Leroy wrote: >> On powerpc, a call to a VDSO function is not a standard C function >> call. Unlike x86 that returns a negated error code in case of an >> error, powerpc sets CR[SO] and retur

Re: [PATCH v2 16/17] selftests: vdso: Make VDSO function call more generic

2024-08-26 Thread Jason A. Donenfeld
On Thu, Aug 22, 2024 at 09:13:24AM +0200, Christophe Leroy wrote: > On powerpc, a call to a VDSO function is not a standard C function > call. Unlike x86 that returns a negated error code in case of an > error, powerpc sets CR[SO] and returns the error code as a > positive value. > > So use a macr

[PATCH v2 16/17] selftests: vdso: Make VDSO function call more generic

2024-08-22 Thread Christophe Leroy
On powerpc, a call to a VDSO function is not a standard C function call. Unlike x86 that returns a negated error code in case of an error, powerpc sets CR[SO] and returns the error code as a positive value. So use a macro called VDSO_CALL() which takes a pointer to the function to call, the number