aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/kexec_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/kexec_64.h')
-rw-r--r--include/asm-x86/kexec_64.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/asm-x86/kexec_64.h b/include/asm-x86/kexec_64.h
index 738e581b67f8..b5f989b15c0b 100644
--- a/include/asm-x86/kexec_64.h
+++ b/include/asm-x86/kexec_64.h
@@ -60,14 +60,14 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
60 if (oldregs) 60 if (oldregs)
61 memcpy(newregs, oldregs, sizeof(*newregs)); 61 memcpy(newregs, oldregs, sizeof(*newregs));
62 else { 62 else {
63 __asm__ __volatile__("movq %%rbx,%0" : "=m"(newregs->rbx)); 63 __asm__ __volatile__("movq %%rbx,%0" : "=m"(newregs->bx));
64 __asm__ __volatile__("movq %%rcx,%0" : "=m"(newregs->rcx)); 64 __asm__ __volatile__("movq %%rcx,%0" : "=m"(newregs->cx));
65 __asm__ __volatile__("movq %%rdx,%0" : "=m"(newregs->rdx)); 65 __asm__ __volatile__("movq %%rdx,%0" : "=m"(newregs->dx));
66 __asm__ __volatile__("movq %%rsi,%0" : "=m"(newregs->rsi)); 66 __asm__ __volatile__("movq %%rsi,%0" : "=m"(newregs->si));
67 __asm__ __volatile__("movq %%rdi,%0" : "=m"(newregs->rdi)); 67 __asm__ __volatile__("movq %%rdi,%0" : "=m"(newregs->di));
68 __asm__ __volatile__("movq %%rbp,%0" : "=m"(newregs->rbp)); 68 __asm__ __volatile__("movq %%rbp,%0" : "=m"(newregs->bp));
69 __asm__ __volatile__("movq %%rax,%0" : "=m"(newregs->rax)); 69 __asm__ __volatile__("movq %%rax,%0" : "=m"(newregs->ax));
70 __asm__ __volatile__("movq %%rsp,%0" : "=m"(newregs->rsp)); 70 __asm__ __volatile__("movq %%rsp,%0" : "=m"(newregs->sp));
71 __asm__ __volatile__("movq %%r8,%0" : "=m"(newregs->r8)); 71 __asm__ __volatile__("movq %%r8,%0" : "=m"(newregs->r8));
72 __asm__ __volatile__("movq %%r9,%0" : "=m"(newregs->r9)); 72 __asm__ __volatile__("movq %%r9,%0" : "=m"(newregs->r9));
73 __asm__ __volatile__("movq %%r10,%0" : "=m"(newregs->r10)); 73 __asm__ __volatile__("movq %%r10,%0" : "=m"(newregs->r10));
@@ -78,9 +78,9 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
78 __asm__ __volatile__("movq %%r15,%0" : "=m"(newregs->r15)); 78 __asm__ __volatile__("movq %%r15,%0" : "=m"(newregs->r15));
79 __asm__ __volatile__("movl %%ss, %%eax;" :"=a"(newregs->ss)); 79 __asm__ __volatile__("movl %%ss, %%eax;" :"=a"(newregs->ss));
80 __asm__ __volatile__("movl %%cs, %%eax;" :"=a"(newregs->cs)); 80 __asm__ __volatile__("movl %%cs, %%eax;" :"=a"(newregs->cs));
81 __asm__ __volatile__("pushfq; popq %0" :"=m"(newregs->eflags)); 81 __asm__ __volatile__("pushfq; popq %0" :"=m"(newregs->flags));
82 82
83 newregs->rip = (unsigned long)current_text_addr(); 83 newregs->ip = (unsigned long)current_text_addr();
84 } 84 }
85} 85}
86 86