Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 09:58:40 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Konstantin Belousov <kib@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r238597 - head/sys/amd64/amd64
Message-ID:  <201207300958.40082.jhb@freebsd.org>
In-Reply-To: <201207181536.q6IFa45h084774@svn.freebsd.org>
References:  <201207181536.q6IFa45h084774@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, July 18, 2012 11:36:04 am Konstantin Belousov wrote:
> Author: kib
> Date: Wed Jul 18 15:36:03 2012
> New Revision: 238597
> URL: http://svn.freebsd.org/changeset/base/238597
> 
> Log:
>   Add stmxcsr.
>   
>   Submitted by:	Ed Alley <wea llnl gov>
>   PR:	  amd64/169927
>   MFC after:	3 weeks
> 
> Modified:
>   head/sys/amd64/amd64/fpu.c
> 
> Modified: head/sys/amd64/amd64/fpu.c
> 
==============================================================================
> --- head/sys/amd64/amd64/fpu.c	Wed Jul 18 12:41:09 2012	(r238596)
> +++ head/sys/amd64/amd64/fpu.c	Wed Jul 18 15:36:03 2012	(r238597)
> @@ -73,6 +73,7 @@ __FBSDID("$FreeBSD$");
>  #define	fxrstor(addr)		__asm __volatile("fxrstor %0" : : "m" 
(*(addr)))
>  #define	fxsave(addr)		__asm __volatile("fxsave %0" : "=m" (*(addr)))
>  #define	ldmxcsr(csr)		__asm __volatile("ldmxcsr %0" : : "m" (csr))
> +#define	stmxcsr(addr)		__asm __volatile("stmxcsr %0" : : "m" 
(*(addr)))
>  
>  static __inline void
>  xrstor(char *addr, uint64_t mask)
> @@ -105,6 +106,7 @@ void	fnstsw(caddr_t addr);
>  void	fxsave(caddr_t addr);
>  void	fxrstor(caddr_t addr);
>  void	ldmxcsr(u_int csr);
> +void	stmxcsr(u_int csr);
>  void	xrstor(char *addr, uint64_t mask);
>  void	xsave(char *addr, uint64_t mask);

I think this should use 'u_int *addr' rather than 'u_int csr'.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207300958.40082.jhb>