Re: Floating point in interrupt handler

2007-10-27 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]> writes: : Hi Warner, : : On Wednesday 24 October 2007 23:15:13 you wrote: : > In message: <[EMAIL PROTECTED]> : > : > "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]> writes: : > : But what I haven't fou

Re: Floating point in interrupt handler

2007-10-27 Thread Daan Vreeken [PA4DAN]
Hi Warner, On Wednesday 24 October 2007 23:15:13 you wrote: > In message: <[EMAIL PROTECTED]> > > "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]> writes: > : But what I haven't found is a description of exactly what the kernel is > : missing to allow floating point operations to be done th

Re: Floating point in interrupt handler

2007-10-24 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]> writes: : But what I haven't found is a description of exactly what the kernel is : missing to allow floating point operations to be done there. FPU context is assumed to only change in user processes. You'd

Re: Floating point in interrupt handler

2007-10-23 Thread Daan Vreeken [PA4DAN]
On Tuesday 23 October 2007 07:52:41 Issei Suzuki wrote: > 2007/10/23, Daan Vreeken [PA4DAN] <[EMAIL PROTECTED]>: > > So I've added asm inline functions to use the FPU's fsin and fcos > > operands. At the start of my loop function I (try to) save the FPU state > > with the following code : > > t

Re: Floating point in interrupt handler

2007-10-23 Thread Issei Suzuki
2007/10/23, Daan Vreeken [PA4DAN] <[EMAIL PROTECTED]>: > So I've added asm inline functions to use the FPU's fsin and fcos operands. At > the start of my loop function I (try to) save the FPU state with the > following code : > td = curthread; > npxgetregs(td, &fpu_state); > At the end of

Re: Floating point in interrupt handler

2007-10-23 Thread Daan Vreeken [PA4DAN]
Hi SorAlx On Tuesday 23 October 2007 03:35:09 you wrote: > > As a first test I've created a simple loop that uses integer > > arithmetic and a lookup table to create a sine wave on one of the DAC > > outputs. This works like a charm, but I really would like to be able > > to use floating point ins

Floating point in interrupt handler

2007-10-22 Thread Daan Vreeken [PA4DAN]
Hi all, For a work related project I'm trying to create a sort of real-time control loop. I've written a driver for a PCI data acquisition card that features a number of digital-to-analog and analog-to-digital converters. The goal is to create a control loop that runs about 1 times a second

Floating point in interrupt handler

2007-10-22 Thread Daan Vreeken [PA4DAN]
Hi all, For a work related project I'm trying to create a sort of real-time control loop. I've written a driver for a PCI data acquisition card that features a number of digital-to-analog and analog-to-digital converters. The goal is to create a control loop that runs about 1 times a second