Lines Matching refs:newregs
74 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
78 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs()
81 asm volatile("movl %%ebx,%0" : "=m"(newregs->bx)); in crash_setup_regs()
82 asm volatile("movl %%ecx,%0" : "=m"(newregs->cx)); in crash_setup_regs()
83 asm volatile("movl %%edx,%0" : "=m"(newregs->dx)); in crash_setup_regs()
84 asm volatile("movl %%esi,%0" : "=m"(newregs->si)); in crash_setup_regs()
85 asm volatile("movl %%edi,%0" : "=m"(newregs->di)); in crash_setup_regs()
86 asm volatile("movl %%ebp,%0" : "=m"(newregs->bp)); in crash_setup_regs()
87 asm volatile("movl %%eax,%0" : "=m"(newregs->ax)); in crash_setup_regs()
88 asm volatile("movl %%esp,%0" : "=m"(newregs->sp)); in crash_setup_regs()
89 asm volatile("movl %%ss, %%eax;" :"=a"(newregs->ss)); in crash_setup_regs()
90 asm volatile("movl %%cs, %%eax;" :"=a"(newregs->cs)); in crash_setup_regs()
91 asm volatile("movl %%ds, %%eax;" :"=a"(newregs->ds)); in crash_setup_regs()
92 asm volatile("movl %%es, %%eax;" :"=a"(newregs->es)); in crash_setup_regs()
93 asm volatile("pushfl; popl %0" :"=m"(newregs->flags)); in crash_setup_regs()
95 asm volatile("movq %%rbx,%0" : "=m"(newregs->bx)); in crash_setup_regs()
96 asm volatile("movq %%rcx,%0" : "=m"(newregs->cx)); in crash_setup_regs()
97 asm volatile("movq %%rdx,%0" : "=m"(newregs->dx)); in crash_setup_regs()
98 asm volatile("movq %%rsi,%0" : "=m"(newregs->si)); in crash_setup_regs()
99 asm volatile("movq %%rdi,%0" : "=m"(newregs->di)); in crash_setup_regs()
100 asm volatile("movq %%rbp,%0" : "=m"(newregs->bp)); in crash_setup_regs()
101 asm volatile("movq %%rax,%0" : "=m"(newregs->ax)); in crash_setup_regs()
102 asm volatile("movq %%rsp,%0" : "=m"(newregs->sp)); in crash_setup_regs()
103 asm volatile("movq %%r8,%0" : "=m"(newregs->r8)); in crash_setup_regs()
104 asm volatile("movq %%r9,%0" : "=m"(newregs->r9)); in crash_setup_regs()
105 asm volatile("movq %%r10,%0" : "=m"(newregs->r10)); in crash_setup_regs()
106 asm volatile("movq %%r11,%0" : "=m"(newregs->r11)); in crash_setup_regs()
107 asm volatile("movq %%r12,%0" : "=m"(newregs->r12)); in crash_setup_regs()
108 asm volatile("movq %%r13,%0" : "=m"(newregs->r13)); in crash_setup_regs()
109 asm volatile("movq %%r14,%0" : "=m"(newregs->r14)); in crash_setup_regs()
110 asm volatile("movq %%r15,%0" : "=m"(newregs->r15)); in crash_setup_regs()
111 asm volatile("movl %%ss, %%eax;" :"=a"(newregs->ss)); in crash_setup_regs()
112 asm volatile("movl %%cs, %%eax;" :"=a"(newregs->cs)); in crash_setup_regs()
113 asm volatile("pushfq; popq %0" :"=m"(newregs->flags)); in crash_setup_regs()
115 newregs->ip = _THIS_IP_; in crash_setup_regs()