Re: Floating point in kernel?

2018-05-26 Thread Johannes Lundberg
On Sat, May 26, 2018 at 11:11 AM Konstantin Belousov 
wrote:

> On Sat, May 26, 2018 at 10:59:50AM +0100, Johannes Lundberg wrote:
> > Hi
> >
> > The new AMD graphics drivers use floats in kernel space.
> > Upstream Linux code has something like:
> > kernel_fpu_begin();
> > ...
> > kernel_fpu_end();
> >
> > Do we have similar functions to save/restore FPU registers?
> Read fpu_kern(9).
>

Thanks! Actually I found that just after hitting the send button :)
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: Floating point in kernel?

2018-05-26 Thread Konstantin Belousov
On Sat, May 26, 2018 at 10:59:50AM +0100, Johannes Lundberg wrote:
> Hi
> 
> The new AMD graphics drivers use floats in kernel space.
> Upstream Linux code has something like:
> kernel_fpu_begin();
> ...
> kernel_fpu_end();
> 
> Do we have similar functions to save/restore FPU registers?
Read fpu_kern(9).
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Floating point in kernel?

2018-05-26 Thread Johannes Lundberg
Hi

The new AMD graphics drivers use floats in kernel space.
Upstream Linux code has something like:
kernel_fpu_begin();
...
kernel_fpu_end();

Do we have similar functions to save/restore FPU registers?

Cheers
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"