Re: Sparc64 driver differences from x86 arch?

From: Anton Blanchard (anton@linuxcare.com)
Date: Fri Jun 23 2000 - 20:05:03 EST


 
> I can not quite understand the reason, since the definition of command
> number is the same, why they are differnt in execution. I have a question, I
> build the kernel module using "sparc64-linux-gcc" which produces 64 bit ELF
> binary. Should I use it for application building also? I just compile the
> test applicaiton using "gcc" which generate 32 bit ELF binary, will this
> bring any problem?

Since your application is 32 bit you need to convert it to a 64 bit kernel
ioctl.

Check out arch/sparc64/kernel/ioctl32.c Specifically look at COMPATIBLE_IOCTL()
if nothing special needs to be done otherwise look at HANDLE_IOCTL().

Cheers,
Anton

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:27 EST