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-devel

Re: [Xen-devel] porting xen-detect ASM code into a shared library

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] porting xen-detect ASM code into a shared library
From: Guillaume Rousse <Guillaume.Rousse@xxxxxxxx>
Date: Thu, 10 Jul 2008 14:43:37 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 10 Jul 2008 05:44:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C49BBFCA.23DD9%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C49BBFCA.23DD9%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080504)
Keir Fraser a écrit :


On 10/7/08 13:30, "Guillaume Rousse" <Guillaume.Rousse@xxxxxxxx> wrote:

Many thanks, it worked. I just hope this is not an error in original
xc_cpuid_x86.c ccode (borrowed from
http://lxr.xensource.com/lxr/source/tools/libxc/xc_cpuid_x86.c)

Can I ensure upstream cfengine maintainer about portability of this code
among various platforms and systems ?

It's gcc and x86 specific of course. Beyond that it is portable (across OSes
for example).
What's the point of #ifdef __i386__ for the %ebx register usage issue, if whose cpuid function is x86-only ? Or is it actually a way to distinguish between gcc and other compilers ?

And are they alternative for non-i386 arches ?
--
Guillaume Rousse
Moyens Informatiques - INRIA Futurs
Tel: 01 69 35 69 62

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel