[xen master] x86/public: correct register naming

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

[xen master] x86/public: correct register naming

commit 8839be5c1fe339a1310b4e05e88c5a0230b7959d
Author:     Jan Beulich <[hidden email]>
AuthorDate: Fri May 5 17:09:49 2017 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Fri May 5 17:09:49 2017 +0200

    x86/public: correct register naming
    Commit 897129deab ("x86: use unambiguous register names") went a little
    too far: With it we also get register names like _e15 and e15 for
    non-Xen consumers using a gcc compatible compiler. Correct this.
    Signed-off-by: Jan Beulich <[hidden email]>
    Acked-by: Andrew Cooper <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
 xen/include/public/arch-x86/xen-x86_64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/public/arch-x86/xen-x86_64.h b/xen/include/public/arch-x86/xen-x86_64.h
index 6e74cb3..978f8cb 100644
--- a/xen/include/public/arch-x86/xen-x86_64.h
+++ b/xen/include/public/arch-x86/xen-x86_64.h
@@ -173,7 +173,7 @@ struct iret_context {
 #define __DECL_REG_LOHI(name) __DECL_REG(name ## x)
 #define __DECL_REG_LO8        __DECL_REG
 #define __DECL_REG_LO16       __DECL_REG
-#define __DECL_REG_HI         __DECL_REG
+#define __DECL_REG_HI(num)    uint64_t r ## num
 struct cpu_user_regs {
generated by git-patchbot for /home/xen/git/xen.git#master

Xen-changelog mailing list
[hidden email]