x86_64: fix naming of rflags in elf regset structure
This is a trivial, non-functional, change so should be considered for 4.2, and backported to 4.1 and 4.0 release candidates.
Signature · 2 lines
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer T: +44 (0)1223 225 900, http://www.citrix.com
# HG changeset patch
# Parent 8f1e0cc4a507a52a49a2eb7832a57ecc7e032dcex86_64: fix naming of rflags in elf regset structure
'pushfq' pushes rflags, not eflags. Fix up naming of the structure.
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
xen/include/asm-x86/x86_64/elf.h +2 -2
@@ -20,7 +20,7 @@ typedef struct {unsigned long orig_rax;unsigned long rip;unsigned long cs; -unsigned long eflags; +unsigned long rflags;unsigned long rsp;unsigned long ss;unsigned long thread_fs;
@@ -54,7 +54,7 @@ static inline void elf_core_save_regs(EL/* orig_rax not filled in for now */ core_regs->rip = (unsigned long )elf_core_save_regs; asmvolatile ("movl %%cs, %%eax;" :"=a" (core_regs->cs)); - asmvolatile ("pushfq; popq %0" :"=m" (core_regs->eflags)); + asmvolatile ("pushfq; popq %0" :"=m" (core_regs->rflags)); asmvolatile ("movq %%rsp,%0" :"=m" (core_regs->rsp)); asmvolatile ("movl %%ss, %%eax;" :"=a" (core_regs->ss));/* thread_fs not filled in for now */
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines · Andrew Cooper
This is a trivial, non-functional, change so should be considered for 4.2, and backported to 4.1 and 4.0 release candidates.
Since this doesn't fix anything, apart from a source-code name, this would be pointless to backport.
-- Keir