x86_64: fix naming of rflags in elf regset structure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 May 2012 10:02:54 +0000 (11:02 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 10 May 2012 10:02:54 +0000 (11:02 +0100)
'pushfq' pushes rflags, not eflags.  Fix up naming of the structure.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/x86_64/elf.h

index df92ec0e64f455f06433f0b4a97d4fbdd3644dd3..0a99cebc13da8a075c87f684d0d601b36c36a46d 100644 (file)
@@ -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(ELF_Gregset *core_regs,
     /* orig_rax not filled in for now */
     core_regs->rip = (unsigned long)elf_core_save_regs;
     asm volatile("movl %%cs, %%eax;" :"=a"(core_regs->cs));
-    asm volatile("pushfq; popq %0" :"=m"(core_regs->eflags));
+    asm volatile("pushfq; popq %0" :"=m"(core_regs->rflags));
     asm volatile("movq %%rsp,%0" : "=m"(core_regs->rsp));
     asm volatile("movl %%ss, %%eax;" :"=a"(core_regs->ss));
     /* thread_fs not filled in for now */