]> xenbits.xensource.com Git - xen.git/commitdiff
x86: re-introduce non-underscore prefixed 32-bit register names
authorJan Beulich <jbeulich@suse.com>
Wed, 1 Mar 2017 09:37:28 +0000 (10:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 1 Mar 2017 09:37:28 +0000 (10:37 +0100)
For a transitional period (until we've managed to replace all
underscore prefixed instances), allow both names to co-exist.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/public/arch-x86/xen-x86_64.h

index 84bf0e1d58f54f82e5605c0e813279f1211b78da..0c00525433a546de2c728f539bb41726455e2ee5 100644 (file)
@@ -134,7 +134,7 @@ struct iret_context {
 /* Anonymous unions include all permissible names (e.g., al/ah/ax/eax/rax). */
 #define __DECL_REG_LOHI(which) union { \
     uint64_t r ## which ## x; \
-    uint32_t _e ## which ## x; \
+    uint32_t e ## which ## x, _e ## which ## x; \
     uint16_t which ## x; \
     struct { \
         uint8_t which ## l; \
@@ -143,13 +143,13 @@ struct iret_context {
 }
 #define __DECL_REG_LO8(name) union { \
     uint64_t r ## name; \
-    uint32_t _e ## name; \
+    uint32_t e ## name, _e ## name; \
     uint16_t name; \
     uint8_t name ## l; \
 }
 #define __DECL_REG_LO16(name) union { \
     uint64_t r ## name; \
-    uint32_t _e ## name; \
+    uint32_t e ## name, _e ## name; \
     uint16_t name; \
 }
 #define __DECL_REG_HI(num) union { \