Home
last modified time | relevance | path

Searched refs:kregs (Results 1 – 17 of 17) sorted by relevance

/linux/arch/openrisc/kernel/
A Dprocess.c159 struct pt_regs *kregs; in copy_thread() local
173 kregs = (struct pt_regs *)sp; in copy_thread()
176 memset(kregs, 0, sizeof(struct pt_regs)); in copy_thread()
177 kregs->gpr[20] = usp; /* fn, kernel thread */ in copy_thread()
178 kregs->gpr[22] = arg; in copy_thread()
193 kregs->gpr[20] = 0; /* Userspace thread */ in copy_thread()
200 kregs->sp = top_of_kernel_stack; in copy_thread()
201 kregs->gpr[9] = (unsigned long)ret_from_fork; in copy_thread()
203 task_thread_info(p)->ksp = (unsigned long)kregs; in copy_thread()
/linux/arch/sparc/include/asm/
A Dprocessor_32.h41 struct pt_regs *kregs; member
58 .kregs = (struct pt_regs *)(init_stack+THREAD_SIZE)-1 \
94 #define task_pt_regs(tsk) ((tsk)->thread.kregs)
95 #define KSTK_EIP(tsk) ((tsk)->thread.kregs->pc)
96 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->u_regs[UREG_FP])
A Dswitch_to_32.h24 (prv)->thread.kregs->psr &= ~PSR_EF; \
34 (nxt)->thread.kregs->psr&=~PSR_EF; \
A Dthread_info_64.h46 struct pt_regs *kregs; member
121 .kregs = (struct pt_regs *)(init_stack+THREAD_SIZE)-1 \
A Dprocessor_64.h188 #define task_pt_regs(tsk) (task_thread_info(tsk)->kregs)
/linux/arch/nios2/include/asm/
A Dprocessor.h46 struct pt_regs *kregs; member
57 .kregs = NULL, \
78 #define KSTK_EIP(tsk) ((tsk)->thread.kregs->ea)
79 #define KSTK_ESP(tsk) ((tsk)->thread.kregs->sp)
/linux/arch/sparc/kernel/
A Dprocess_64.c256 regs = tp->kregs; in arch_trigger_cpumask_backtrace()
593 t->kregs = (struct pt_regs *) (child_trap_frame + in copy_thread()
602 t->kregs->u_regs[UREG_G1] = sp; /* function */ in copy_thread()
603 t->kregs->u_regs[UREG_G2] = arg; in copy_thread()
613 t->kregs->u_regs[UREG_FP] = sp; in copy_thread()
623 t->kregs->u_regs[UREG_FP] = csp; in copy_thread()
629 t->kregs->u_regs[UREG_I0] = current->pid; in copy_thread()
630 t->kregs->u_regs[UREG_I1] = 1; in copy_thread()
636 t->kregs->u_regs[UREG_G7] = tls; in copy_thread()
A Dptrace_32.c88 const struct pt_regs *regs = target->thread.kregs; in genregs32_get()
112 struct pt_regs *regs = target->thread.kregs; in genregs32_set()
248 const struct pt_regs *regs = target->thread.kregs; in getregs_get()
265 struct pt_regs *regs = target->thread.kregs; in setregs_set()
363 unsigned long addr2 = current->thread.kregs->u_regs[UREG_I4]; in arch_ptrace()
A Dunaligned_32.c61 die_if_kernel("Byte sized unaligned access?!?!", current->thread.kregs); in decode_access_size()
A Dprocess_32.c297 p->thread.kregs = childregs;
A Dtraps_64.c2851 TI_KREGS != offsetof(struct thread_info, kregs) || in trap_init()
/linux/arch/nios2/kernel/
A Dkgdb.c100 gdb_regs[GDB_SP] = p->thread.kregs->sp; in sleeping_thread_to_gdb_regs()
101 gdb_regs[GDB_PC] = p->thread.kregs->ea; in sleeping_thread_to_gdb_regs()
A Dprocess.c123 p->thread.kregs = childregs; in copy_thread()
135 p->thread.kregs = childregs; in copy_thread()
A Dsetup.c158 init_task.thread.kregs = &fake_regs; in setup_arch()
A Dsignal.c238 current->thread.kregs = regs; in do_signal()
/linux/arch/sparc/mm/
A Dfault_32.c348 __do_fault_siginfo(code, SIGSEGV, tsk->thread.kregs, address); in force_user_fault()
353 __do_fault_siginfo(BUS_ADRERR, SIGBUS, tsk->thread.kregs, address); in force_user_fault()
/linux/arch/powerpc/kernel/
A Dprocess.c1687 struct pt_regs *childregs, *kregs; in copy_thread() local
1753 kregs = (struct pt_regs *) sp; in copy_thread()
1788 kregs->amr = AMR_KUAP_BLOCKED; in copy_thread()
1791 kregs->iamr = AMR_KUEP_BLOCKED; in copy_thread()
1793 kregs->nip = ppc_function_entry(f); in copy_thread()

Completed in 28 milliseconds