Re: FP in kernelspace

From: Avi Kivity
Date: Sun Jul 30 2006 - 11:21:44 EST


Jiri Slaby wrote:

> unfortunately this only works for MMX not for real fpu (due to exception
> handling uglies)

concludes it's not multiplatform at all... For that reasen I (maybe) want some
"protocol" for communication with US, where I can easily compute it.

Well, usually such a protocol is by means of read(2) and write(2) to a character device provided by your driver: userspace reads some data, does the fp ops, and writes it back. If you want realtime you'll have to use a realtime thread with the appropriate priority.

--
error compiling committee.c: too many arguments to function

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