| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-merge] fs/gs handling
 Hi Andi,
On Fri, Aug 12, 2005 at 11:26:27AM +0200, Andi Kleen wrote:
> On Fri, Aug 12, 2005 at 05:11:49AM +0200, Kurt Garloff wrote:
> > On Thu, Aug 11, 2005 at 07:41:45PM -0700, Chris Wright wrote:
> > >  #define deactivate_mm(tsk, mm) \
> > > - asm("movl %0,%%fs ; movl %0,%%gs": :"r" (0))
> > > + asm("mov %0,%%fs ; mov %0,%%gs": :"r" (0))
> > 
> > mov works for both x86 and x86-64 ...
> > ... though I don't know whether that's relevant here.
> 
> It's not. Segment registers cannot be 64bit.
mov will work (the assembler knows the size of a segment register),
movl won't. movw would be correct. segment selectors are 16bit.
Best,
-- 
Kurt Garloff, Director SUSE Labs, Novell Inc.
Attachment:
pgpmMJztJWs3q.pgp _______________________________________________ Xen-merge mailing list Xen-merge@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-merge 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |