Hello Roy,Pascal and all,

As to the translating the parameters between native 64-bit and emulated 
32-bit modes it should be correctly handled by the Linux kernel...

I read here:

http://www.winehq.org/?issue=351

in this:

http://www.winehq.org/?issue=351#Kernel%20bug%20inhibiting%20force%20feedback

id est in "Kernel bug inhibiting force feedback" this:

"
Kernel bug inhibiting force feedback Archive
Kernel
Vitaliy Margolen encountered an interesting kernel bug in working on 
some force-feedback issues:

While debugging some force-feedback issues ran into an interesting 
problem. The size of one struct from include/linux differs between 
32-bit and 64-bit. That wouldn't be a major problem except that size is 
the part of the ioctl() request. Which results in EINVAL.

In more details:

input.h: #define EVIOCSFF _IOC(_IOC_WRITE, 'E', 0x80, sizeof(struct 
ff_effect))

The simple test program:
#include linux/input.h #include stdio.h int main(int argc, char * 
argv[]) { printf("sizeof(struct ff_effect) = %d EVIOCSFF=%#x\n", 
sizeof(struct ff_effect), EVIOCSFF); return 0; }

$ gcc test_size.c -o test_size && ./test_size sizeof(struct ff_effect) = 
48 EVIOCSFF=0x40304580 $ gcc -m32 test_size.c -o test_size32 && 
./test_size32 sizeof(struct ff_effect) = 44 EVIOCSFF=0x402c4580

The question is what do we do about it? I'm sure there are might be more 
cases like that.
Vitaliy

A couple devs. wrote in with the notion that its likely a Kernel bug, 
Dmitry Timoshkov writes in definitively:

64-bit kernel should take care of translating the parameters between 
native 64-bit and emulated 32-bit modes. If that's not the case that's a 
kernel bug, and should be reported appropriately.
"

so it is not a bug in Scid 3.6.25 if the Linux kernel
does not handle correctly translating the parameters between native 
64-bit and emulated 32-bit modes...

Best wishes,
Hans Eriksson

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to