Home
last modified time | relevance | path

Searched refs:new_ctx (Results 1 – 4 of 4) sorted by relevance

/arch/powerpc/kernel/
Dsignal_64.c636 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3() argument
643 if (new_ctx && in SYSCALL_DEFINE3()
644 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
671 if (new_ctx == NULL) in SYSCALL_DEFINE3()
673 if (!access_ok(new_ctx, ctx_size) in SYSCALL_DEFINE3()
674 || __get_user(tmp, (u8 __user *) new_ctx) in SYSCALL_DEFINE3()
675 || __get_user(tmp, (u8 __user *) new_ctx + ctx_size - 1)) in SYSCALL_DEFINE3()
690 if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set))) in SYSCALL_DEFINE3()
693 if (restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) in SYSCALL_DEFINE3()
Dsignal_32.c1053 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3() argument
1056 struct ucontext __user *, new_ctx, long, ctx_size) in COMPAT_SYSCALL_DEFINE3()
1065 if (new_ctx) { in COMPAT_SYSCALL_DEFINE3()
1074 if (__get_user(cmcp, &new_ctx->uc_regs)) in COMPAT_SYSCALL_DEFINE3()
1121 if (new_ctx == NULL) in COMPAT_SYSCALL_DEFINE3()
1123 if (!access_ok(new_ctx, ctx_size) || in COMPAT_SYSCALL_DEFINE3()
1124 fault_in_pages_readable((u8 __user *)new_ctx, ctx_size)) in COMPAT_SYSCALL_DEFINE3()
1138 if (do_setcontext(new_ctx, regs, 0)) in COMPAT_SYSCALL_DEFINE3()
/arch/sparc/mm/
Dinit_64.c782 unsigned long new_ver, new_ctx, old_ctx; in mmu_context_wrap() local
819 new_ctx = (old_ctx & ~CTX_VERSION_MASK) | new_ver; in mmu_context_wrap()
820 set_bit(new_ctx & CTX_NR_MASK, mmu_context_bmap); in mmu_context_wrap()
821 mm->context.sparc64_ctx_val = new_ctx; in mmu_context_wrap()
838 unsigned long ctx, new_ctx; in get_new_mmu_context() local
848 new_ctx = find_next_zero_bit(mmu_context_bmap, 1 << CTX_NR_BITS, ctx); in get_new_mmu_context()
849 if (new_ctx >= (1 << CTX_NR_BITS)) { in get_new_mmu_context()
850 new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1); in get_new_mmu_context()
851 if (new_ctx >= ctx) { in get_new_mmu_context()
858 mmu_context_bmap[new_ctx>>6] |= (1UL << (new_ctx & 63)); in get_new_mmu_context()
[all …]
/arch/powerpc/include/asm/
Dasm-prototypes.h89 struct ucontext __user *new_ctx,