Date: Sat, 19 Sep 2009 21:41:02 -0700 From: Peter Wemm <peter@wemm.org> To: Barney Cordoba <barney_cordoba@yahoo.com> Cc: freebsd-current@freebsd.org, Ivan Voras <ivoras@freebsd.org> Subject: Re: SSE register return with SSE disabled on AMD64 Message-ID: <e7db6d980909192141s412695a4xb743b79a4895ec45@mail.gmail.com> In-Reply-To: <507613.41733.qm@web63907.mail.re1.yahoo.com> References: <h93ga5$frd$1@ger.gmane.org> <507613.41733.qm@web63907.mail.re1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 19, 2009 at 3:19 PM, Barney Cordoba <barney_cordoba@yahoo.com> wrote: > > > --- On Sat, 9/19/09, Ivan Voras <ivoras@freebsd.org> wrote: > >> From: Ivan Voras <ivoras@freebsd.org> >> Subject: Re: SSE register return with SSE disabled on AMD64 >> To: freebsd-current@freebsd.org >> Date: Saturday, September 19, 2009, 4:52 PM >> Barney Cordoba wrote: >> > What causes the error: >> > >> > "SSE register return with SSE disabled" >> > >> > Im getting it with seemingly simple math. Its in a >> module so I can >> > change the switches. >> >> Module, as in "kernel module"? Floating point math, and I >> believe by >> extension SSE and others, are not allowed in the kernel. >> > Yes, Kernel Module > > It only seems to affect division, and it works fine in 32 bit mode, > so I don't think its floating point in general. Is there an emulator > function or something? > > Barney The error suggests you've got a function returning a double or a float or an SSE data type. You cannot do that, either in the kernel or in a module. You will cause corruption to user processes. We compile with -mno-sse etc for a reason on amd64 kernels. It isn't allowed on i386 either, but I don't think we have explicit safeguards therem. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV "All of this is for nothing if we don't go to the stars" - JMS/B5 "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7db6d980909192141s412695a4xb743b79a4895ec45>