From: Ian Campbell Subject: Re: [PATCH mini-os enhancements for vtpm 7/8] add floating point and sse to mini-os Date: Tue, 18 Sep 2012 08:38:23 +0100 Message-ID: <1347953903.25803.88.camel@dagon.hellion.org.uk> References: <50579E7F.1050803@jhuapl.edu> <1347952878.25803.76.camel@dagon.hellion.org.uk> <20120918073114.GE5110@type.youpi.perso.aquilenet.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20120918073114.GE5110@type.youpi.perso.aquilenet.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Samuel Thibault Cc: Matthew Fioravante , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2012-09-18 at 08:31 +0100, Samuel Thibault wrote: > Ian Campbell, le Tue 18 Sep 2012 08:21:18 +0100, a =E9crit : > > On Mon, 2012-09-17 at 23:04 +0100, Matthew Fioravante wrote: > > > This patch adds floating point and sse support to mini-os by > > > initializing the floating point unit and the see unit during domain b= oot up. > > > = > > > = > > > Signed of by: Matthew Fioravante matthew.fioravante@jhuapl.edu > > > = > > > diff --git a/extras/mini-os/arch/x86/setup.c > > > b/extras/mini-os/arch/x86/setup.c > > > --- a/extras/mini-os/arch/x86/setup.c > > > +++ b/extras/mini-os/arch/x86/setup.c > > > @@ -74,9 +74,28 @@ shared_info_t *map_shared_info(unsigned long pa) > > > return (shared_info_t *)shared_info; > > > } > > > = > > > +static inline void fpu_init(void) { > > > + asm volatile("fninit"); > > > +} > > > + > > > +#ifdef __SSE__ > > = > > How and when is this symbol defined? > = > This is defined by the compiler if some -msse is enabled. This is the > default on i686/x86_64 at least. Do we support processors/compilers without SSE or conversely do we require SSE support? It sounds like either we need a runtime test or the compile time test is unnecessary. Ian.