On 2026-08-31 01:50, Heiko Carstens wrote:
> On Thu, Aug 27, 2026 at 03:22:35PM -0700, H. Peter Anvin wrote:
>> This isn't a hard thing to solve in any way: replacing the pointer argument
>> with a two-element structure return would do the trick. As far as I know,
>> *all* architectures that support Linux support returning structures with two
>> register-sized values in registers.
> 
> That is unfortunately not true. The s390 ABI defines that structures,
> regardless of size, are returned in a return value buffer allocated by
> the caller.

*Groan*

You guys should use an improved ABI for the kernel like i386 does (different
from the standard ABI used in user space)...

That being said, perhaps s390(x) isn't affected by the underlying problem, and
passing a pointer to a structure isn't any more expensive than passing a
pointer to a variable...

        -hpa


Reply via email to