/linux-5.19.10/arch/x86/include/asm/ |
D | kexec.h | 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() [all …]
|
/linux-5.19.10/arch/sh/include/asm/ |
D | kexec.h | 35 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 39 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 41 __asm__ __volatile__ ("mov r0, %0" : "=r" (newregs->regs[0])); in crash_setup_regs() 42 __asm__ __volatile__ ("mov r1, %0" : "=r" (newregs->regs[1])); in crash_setup_regs() 43 __asm__ __volatile__ ("mov r2, %0" : "=r" (newregs->regs[2])); in crash_setup_regs() 44 __asm__ __volatile__ ("mov r3, %0" : "=r" (newregs->regs[3])); in crash_setup_regs() 45 __asm__ __volatile__ ("mov r4, %0" : "=r" (newregs->regs[4])); in crash_setup_regs() 46 __asm__ __volatile__ ("mov r5, %0" : "=r" (newregs->regs[5])); in crash_setup_regs() 47 __asm__ __volatile__ ("mov r6, %0" : "=r" (newregs->regs[6])); in crash_setup_regs() 48 __asm__ __volatile__ ("mov r7, %0" : "=r" (newregs->regs[7])); in crash_setup_regs() [all …]
|
/linux-5.19.10/arch/xtensa/kernel/ |
D | ptrace.c | 44 struct user_pt_regs newregs = { in gpr_get() local 57 memcpy(newregs.a, in gpr_get() 60 memcpy(newregs.a + regs->windowbase * 4, in gpr_get() 64 return membuf_write(&to, &newregs, sizeof(newregs)); in gpr_get() 73 struct user_pt_regs newregs = {0}; in gpr_set() local 77 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); in gpr_set() 81 if (newregs.windowbase >= XCHAL_NUM_AREGS / 4) in gpr_set() 85 regs->pc = newregs.pc; in gpr_set() 86 regs->ps = (regs->ps & ~ps_mask) | (newregs.ps & ps_mask); in gpr_set() 87 regs->lbeg = newregs.lbeg; in gpr_set() [all …]
|
/linux-5.19.10/arch/arm/include/asm/ |
D | kexec.h | 36 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 40 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 49 : [_ARM_pc] "=r" (newregs->ARM_pc), in crash_setup_regs() 50 [_ARM_cpsr] "=r" (newregs->ARM_cpsr), in crash_setup_regs() 51 [_ARM_sp] "=r" (newregs->ARM_sp), in crash_setup_regs() 52 [_ARM_lr] "=o" (newregs->ARM_lr) in crash_setup_regs() 53 : [regs_base] "r" (&newregs->ARM_r0) in crash_setup_regs()
|
/linux-5.19.10/arch/mips/include/asm/ |
D | kexec.h | 25 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 29 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 31 prepare_frametrace(newregs); in crash_setup_regs()
|
/linux-5.19.10/arch/riscv/include/asm/ |
D | kexec.h | 26 extern void riscv_crash_save_regs(struct pt_regs *newregs); 29 crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 33 memcpy(newregs, oldregs, sizeof(struct pt_regs)); in crash_setup_regs() 35 riscv_crash_save_regs(newregs); in crash_setup_regs()
|
/linux-5.19.10/arch/arm64/include/asm/ |
D | kexec.h | 37 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 41 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 77 : "r" (newregs) in crash_setup_regs()
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | kexec.h | 63 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 67 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 69 ppc_save_regs(newregs); in crash_setup_regs()
|
/linux-5.19.10/arch/arm/kernel/ |
D | ptrace.c | 175 struct pt_regs newregs, *regs = task_pt_regs(task); in put_user_reg() local 178 newregs = *regs; in put_user_reg() 179 newregs.uregs[offset] = data; in put_user_reg() 181 if (valid_user_regs(&newregs)) { in put_user_reg() 557 struct pt_regs newregs = *task_pt_regs(target); in gpr_set() local 560 &newregs, in gpr_set() 561 0, sizeof(newregs)); in gpr_set() 565 if (!valid_user_regs(&newregs)) in gpr_set() 568 *task_pt_regs(target) = newregs; in gpr_set()
|
/linux-5.19.10/arch/arm64/kernel/ |
D | ptrace.c | 572 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set() local 574 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); in gpr_set() 578 if (!valid_user_regs(&newregs, target)) in gpr_set() 581 task_pt_regs(target)->user_regs = newregs; in gpr_set() 1556 struct pt_regs newregs; in compat_gpr_set() local 1569 newregs = *task_pt_regs(target); in compat_gpr_set() 1590 newregs.pc = reg; in compat_gpr_set() 1594 newregs.pstate = reg; in compat_gpr_set() 1597 newregs.orig_x0 = reg; in compat_gpr_set() 1600 newregs.regs[idx] = reg; in compat_gpr_set() [all …]
|
/linux-5.19.10/arch/m68k/include/asm/ |
D | kexec.h | 20 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|
/linux-5.19.10/arch/parisc/include/asm/ |
D | kexec.h | 25 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|
/linux-5.19.10/arch/ia64/include/asm/ |
D | kexec.h | 29 crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs) in crash_setup_regs() argument
|
/linux-5.19.10/arch/s390/include/asm/ |
D | kexec.h | 52 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|