Home
last modified time | relevance | path

Searched refs:newregs (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/arch/x86/include/asm/
Dkexec.h74 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-6.1.9/arch/sh/include/asm/
Dkexec.h35 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-6.1.9/arch/xtensa/kernel/
Dptrace.c44 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-6.1.9/arch/arm/include/asm/
Dkexec.h36 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-6.1.9/arch/mips/include/asm/
Dkexec.h25 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-6.1.9/arch/loongarch/include/asm/
Dkexec.h27 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-6.1.9/arch/riscv/include/asm/
Dkexec.h26 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-6.1.9/arch/arm64/include/asm/
Dkexec.h37 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-6.1.9/arch/powerpc/include/asm/
Dkexec.h63 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-6.1.9/arch/arm/kernel/
Dptrace.c175 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-6.1.9/arch/arm64/kernel/
Dptrace.c572 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()
1569 struct pt_regs newregs; in compat_gpr_set() local
1582 newregs = *task_pt_regs(target); in compat_gpr_set()
1603 newregs.pc = reg; in compat_gpr_set()
1607 newregs.pstate = reg; in compat_gpr_set()
1610 newregs.orig_x0 = reg; in compat_gpr_set()
1613 newregs.regs[idx] = reg; in compat_gpr_set()
[all …]
/linux-6.1.9/arch/m68k/include/asm/
Dkexec.h20 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
/linux-6.1.9/arch/parisc/include/asm/
Dkexec.h25 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument
/linux-6.1.9/arch/ia64/include/asm/
Dkexec.h29 crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs) in crash_setup_regs() argument
/linux-6.1.9/arch/s390/include/asm/
Dkexec.h52 static inline void crash_setup_regs(struct pt_regs *newregs, in crash_setup_regs() argument