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 macro called VDSO_CALL() which takes a pointer to the > function to call, the number of arguments and the arguments. You'll probably want to move to VDSO_CALL() for the whole test suite, not just the getrandom one, right?
- [PATCH v2 11/17] powerpc/vdso: Wire up getrandom() vDSO... Christophe Leroy
- [PATCH v2 12/17] selftests: vdso: Fix powerpc64 vdso_co... Christophe Leroy
- [PATCH v2 13/17] selftests: vdso: Don't hard-code locat... Christophe Leroy
- Re: [PATCH v2 13/17] selftests: vdso: Don't hard-c... Jason A. Donenfeld
- [PATCH v2 14/17] selftests: vdso: Make test_vdso_getran... Christophe Leroy
- Re: [PATCH v2 14/17] selftests: vdso: Make test_vd... Jason A. Donenfeld
- Re: [PATCH v2 14/17] selftests: vdso: Make tes... LEROY Christophe
- [PATCH v2 15/17] selftests: vdso: Fix build of test_vds... Christophe Leroy
- Re: [PATCH v2 15/17] selftests: vdso: Fix build of... Jason A. Donenfeld
- [PATCH v2 16/17] selftests: vdso: Make VDSO function ca... Christophe Leroy
- Re: [PATCH v2 16/17] selftests: vdso: Make VDSO fu... Jason A. Donenfeld
- Re: [PATCH v2 16/17] selftests: vdso: Make VDS... LEROY Christophe
- [PATCH v2 17/17] selftests: vdso: Add support for vdso_... Christophe Leroy
- Re: [PATCH v2 00/17] Wire up getrandom() vDSO implement... Jason A. Donenfeld
- Re: [PATCH v2 00/17] Wire up getrandom() vDSO impl... Jason A. Donenfeld