diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-05-10 11:02:54 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-05-10 11:02:54 +0100 |
commit | f0b5db91de01bff8346e0d9da929c0f3ff60874d (patch) | |
tree | 03580f458059b04829014fc333c7a1c0379d6fc4 /xen/include/asm-x86/x86_64 | |
parent | 02ef90f91de5dedabb68246a27a35c8944f6ee8c (diff) | |
download | xen-f0b5db91de01bff8346e0d9da929c0f3ff60874d.tar.gz xen-f0b5db91de01bff8346e0d9da929c0f3ff60874d.tar.bz2 xen-f0b5db91de01bff8346e0d9da929c0f3ff60874d.zip |
x86_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 <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/x86_64')
-rw-r--r-- | xen/include/asm-x86/x86_64/elf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/asm-x86/x86_64/elf.h b/xen/include/asm-x86/x86_64/elf.h index df92ec0e64..0a99cebc13 100644 --- a/xen/include/asm-x86/x86_64/elf.h +++ b/xen/include/asm-x86/x86_64/elf.h @@ -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 */ |