[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH mini-os enhancements for vtpm 7/8] add floating point and sse to mini-os



Ian Campbell, le Tue 18 Sep 2012 08:21:18 +0100, a écrit :
> 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 boot up.
> > 
> > 
> > Signed of by: Matthew Fioravante matthew.fioravante@xxxxxxxxxx
> > 
> > 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.

Samuel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.