Lines Matching refs:newregs

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