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

RE: [Xen-devel] Definition of eax and rax

>>> "Li, Xin B" <xin.b.li@xxxxxxxxx> 13.12.06 13:15 >>>
>And I don't think it can work for none GCC compiler, since we use eax from 
>time to time :-(
>#ifdef __GNUC__
>/* Anonymous union includes both 32- and 64-bit names (e.g., eax/rax). */
>#define __DECL_REG(name) union { uint64_t r ## name, e ## name; }
>/* Non-gcc sources must always use the proper 64-bit name (e.g., rax). */
>#define __DECL_REG(name) uint64_t r ## name

This is meant to help non-Xen sources including Xen headers. Xen itself is 
assumed to be compiled with gcc as I understand it.


Xen-devel mailing list



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