Re: [PATCH v3] x86/altcall: use an union as register type for function parameters on clang

2024-02-25 Thread Jan Beulich
On 23.02.2024 14:03, Roger Pau Monne wrote: > The current code for alternative calls uses the caller parameter types as the > types for the register variables that serve as function parameters: > > uint8_t foo; > [...] > alternative_call(myfunc, foo); > > Would expand roughly into: > > register

[PATCH v3] x86/altcall: use an union as register type for function parameters on clang

2024-02-23 Thread Roger Pau Monne
The current code for alternative calls uses the caller parameter types as the types for the register variables that serve as function parameters: uint8_t foo; [...] alternative_call(myfunc, foo); Would expand roughly into: register unint8_t a1_ asm("rdi") = foo; register unsigned long a2_