/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/arch/loongarch/include/asm/ |
D | kexec.h | 27 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument 31 memcpy(newregs, oldregs, sizeof(*newregs)); in crash_setup_regs() 33 prepare_frametrace(newregs); in crash_setup_regs()
|
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/arch/arm64/kernel/ |
D | ptrace.c | 567 struct user_pt_regs newregs = task_pt_regs(target)->user_regs; in gpr_set() local 569 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &newregs, 0, -1); in gpr_set() 573 if (!valid_user_regs(&newregs, target)) in gpr_set() 576 task_pt_regs(target)->user_regs = newregs; in gpr_set() 1635 struct pt_regs newregs; in compat_gpr_set() local 1648 newregs = *task_pt_regs(target); in compat_gpr_set() 1669 newregs.pc = reg; in compat_gpr_set() 1673 newregs.pstate = reg; in compat_gpr_set() 1676 newregs.orig_x0 = reg; in compat_gpr_set() 1679 newregs.regs[idx] = reg; in compat_gpr_set() [all …]
|
/Linux-v6.6/arch/m68k/include/asm/ |
D | kexec.h | 20 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|
/Linux-v6.6/arch/parisc/include/asm/ |
D | kexec.h | 25 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|
/Linux-v6.6/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-v6.6/arch/s390/include/asm/ |
D | kexec.h | 52 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
|