All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>, Xin B Li <xin.b.li@intel.com>
Cc: Xen Development Mailing List <xen-devel@lists.xensource.com>
Subject: RE: Definition of eax and rax
Date: Wed, 13 Dec 2006 12:35:55 +0000	[thread overview]
Message-ID: <458001BB.76E4.0078.0@novell.com> (raw)
In-Reply-To: <B30DA1341B0CFA4893EF8A36B40B5C5D873935@pdsmsx411.ccr.corp.intel.com>

>>> "Li, Xin B" <xin.b.li@intel.com> 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; }
>#else
>/* Non-gcc sources must always use the proper 64-bit name (e.g., rax). */
>#define __DECL_REG(name) uint64_t r ## name
>#endif

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

Jan

  reply	other threads:[~2006-12-13 12:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-13 12:15 Definition of eax and rax Li, Xin B
2006-12-13 12:35 ` Jan Beulich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-13 12:31 Li, Xin B
2006-12-13 12:38 ` Petersson, Mats
2006-12-13 12:12 Li, Xin B
2006-12-13 12:22 ` Petersson, Mats
2006-12-13 12:37 ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=458001BB.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=xen-devel@lists.xensource.com \
    --cc=xin.b.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.