diff options
| author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2004-04-19 04:39:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-19 04:39:52 -0700 |
| commit | b4389817f141203a4cd10ffc7890dd9139df65e7 (patch) | |
| tree | d0d5a1ace4d11e44e30d0d7c1260f44343f0ac79 /include/linux/kernelcapi.h | |
| parent | 38fc4e8bc0fc6328e79c81fcc397b491fdb163eb (diff) | |
[PATCH] ppc64: siginfo conversion fix
My message queue patch fixes the 64 bits -> 32 bits conversion of
siginfo, but didn't change the 32 -> 64 bits conversion done in
sys32_rt_sigqueueinfo() which was apparently bogus as well.
After much discussion & debate on the right way of converting that
structure, I decided to go the sparc64 / s390 way, and not the x86_64
way, that is to copy the various unions data "as is". This guarantees
that whatever a 32 bist app passes there, another 32 bits app will
understand it. Crossover between 32 and 64 bits apps on such things
as home-made userland siginfo isn't something we can help with anyway.
The x86_64 choice of converting as if it was an RT signal, thus
converting the sigval, cannot easily be applied to big endian archs
since the sigval is a union of a ptr and an int, on BE, the int
happens to be on the wrong half of the 64 bits ptr, thus we can't
do a simple conversion.
Diffstat (limited to 'include/linux/kernelcapi.h')
0 files changed, 0 insertions, 0 deletions
