Home
last modified time | relevance | path

Searched refs:mcp (Results 1 – 2 of 2) sorted by relevance

/arch/sparc/kernel/
Dsignal_64.c146 mcontext_t __user *mcp; in sparc64_get_context() local
161 mcp = &ucp->uc_mcontext; in sparc64_get_context()
162 grp = &mcp->mc_gregs; in sparc64_get_context()
204 err |= __put_user(fp, &(mcp->mc_fp)); in sparc64_get_context()
205 err |= __put_user(i7, &(mcp->mc_i7)); in sparc64_get_context()
207 err |= __put_user(fenab, &(mcp->mc_fpregs.mcfpu_enab)); in sparc64_get_context()
214 err |= copy_to_user(&(mcp->mc_fpregs.mcfpu_fregs), fpregs, in sparc64_get_context()
218 ((unsigned long __user *)&(mcp->mc_fpregs.mcfpu_fregs))+16, fpregs+16, in sparc64_get_context()
220 err |= __put_user(current_thread_info()->xfsr[0], &(mcp->mc_fpregs.mcfpu_fsr)); in sparc64_get_context()
221 err |= __put_user(current_thread_info()->gsr[0], &(mcp->mc_fpregs.mcfpu_gsr)); in sparc64_get_context()
[all …]
/arch/powerpc/kernel/
Dsignal_32.c908 struct mcontext __user *mcp; in do_setcontext() local
918 mcp = (struct mcontext __user *)(u64)cmcp; in do_setcontext()
922 if (__get_user(mcp, &ucp->uc_regs)) in do_setcontext()
924 if (!access_ok(VERIFY_READ, mcp, sizeof(*mcp))) in do_setcontext()
928 if (restore_user_regs(regs, mcp, sig)) in do_setcontext()
945 struct mcontext __user *mcp; in sys_swapcontext() local
955 mcp = (struct mcontext __user *)(u64)cmcp; in sys_swapcontext()
956 if (__get_user(new_msr, &mcp->mc_gregs[PT_MSR])) in sys_swapcontext()