WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-merge

Re: [Xen-merge] fs/gs handling

To: Chris Wright <chrisw@xxxxxxxx>
Subject: Re: [Xen-merge] fs/gs handling
From: Kurt Garloff <garloff@xxxxxxx>
Date: Fri, 12 Aug 2005 05:11:49 +0200
Cc: xen-merge@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 Aug 2005 07:41:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050812024145.GI7762@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-merge-request@lists.xensource.com?subject=help>
List-id: xen-merge <xen-merge.lists.xensource.com>
List-post: <mailto:xen-merge@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-merge>, <mailto:xen-merge-request@lists.xensource.com?subject=unsubscribe>
Organization: SUSE/Novell
References: <20050812024145.GI7762@xxxxxxxxxxxxxxxxxxx>
Sender: xen-merge-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Hi Chris,

On Thu, Aug 11, 2005 at 07:41:45PM -0700, Chris Wright wrote:
> Any reason that fs/gs are specifically handled with mov not movl in
> these cases?
> 
>  #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.

Best,
-- 
Kurt Garloff                   <kurt@xxxxxxxxxx>             [Koeln, DE]
Physics:Plasma modeling <garloff@xxxxxxxxxxxxxxxxxxx> [TU Eindhoven, NL]
Linux: SUSE Labs (Director)    <garloff@xxxxxxx>            [Novell Inc]

Attachment: pgpUlZ1cdHXtx.pgp
Description: PGP signature

_______________________________________________
Xen-merge mailing list
Xen-merge@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-merge
<Prev in Thread] Current Thread [Next in Thread>