Home
last modified time | relevance | path

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

/arch/powerpc/kernel/
Dsignal_64.c281 struct ucontext __user *new_ctx, in sys_swapcontext() argument
289 if (new_ctx && in sys_swapcontext()
290 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in sys_swapcontext()
317 if (new_ctx == NULL) in sys_swapcontext()
319 if (!access_ok(VERIFY_READ, new_ctx, ctx_size) in sys_swapcontext()
320 || __get_user(tmp, (u8 __user *) new_ctx) in sys_swapcontext()
321 || __get_user(tmp, (u8 __user *) new_ctx + ctx_size - 1)) in sys_swapcontext()
336 if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set))) in sys_swapcontext()
339 if (restore_sigcontext(regs, NULL, 0, &new_ctx->uc_mcontext)) in sys_swapcontext()
Dsignal_32.c939 struct ucontext __user *new_ctx, in sys_swapcontext() argument
948 if (new_ctx) { in sys_swapcontext()
957 if (__get_user(cmcp, &new_ctx->uc_regs)) in sys_swapcontext()
1004 if (new_ctx == NULL) in sys_swapcontext()
1006 if (!access_ok(VERIFY_READ, new_ctx, ctx_size) in sys_swapcontext()
1007 || __get_user(tmp, (u8 __user *) new_ctx) in sys_swapcontext()
1008 || __get_user(tmp, (u8 __user *) new_ctx + ctx_size - 1)) in sys_swapcontext()
1022 if (do_setcontext(new_ctx, regs, 0)) in sys_swapcontext()
/arch/sparc/mm/
Dsun4c.c1236 int new_ctx = mm->context; in sun4c_flush_cache_mm() local
1238 if (new_ctx != NO_CONTEXT) { in sun4c_flush_cache_mm()
1241 if (sun4c_context_ring[new_ctx].num_entries) { in sun4c_flush_cache_mm()
1242 struct sun4c_mmu_entry *head = &sun4c_context_ring[new_ctx].ringhd; in sun4c_flush_cache_mm()
1250 sun4c_set_context(new_ctx); in sun4c_flush_cache_mm()
1256 free_user_entry(new_ctx, entry); in sun4c_flush_cache_mm()
1270 int new_ctx = mm->context; in sun4c_flush_cache_range() local
1272 if (new_ctx != NO_CONTEXT) { in sun4c_flush_cache_range()
1273 struct sun4c_mmu_entry *head = &sun4c_context_ring[new_ctx].ringhd; in sun4c_flush_cache_range()
1292 sun4c_set_context(new_ctx); in sun4c_flush_cache_range()
[all …]
Dinit_64.c632 unsigned long ctx, new_ctx; in get_new_mmu_context() local
640 new_ctx = find_next_zero_bit(mmu_context_bmap, 1 << CTX_NR_BITS, ctx); in get_new_mmu_context()
642 if (new_ctx >= (1 << CTX_NR_BITS)) { in get_new_mmu_context()
643 new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1); in get_new_mmu_context()
644 if (new_ctx >= ctx) { in get_new_mmu_context()
646 new_ctx = (tlb_context_cache & CTX_VERSION_MASK) + in get_new_mmu_context()
648 if (new_ctx == 1) in get_new_mmu_context()
649 new_ctx = CTX_FIRST_VERSION; in get_new_mmu_context()
668 mmu_context_bmap[new_ctx>>6] |= (1UL << (new_ctx & 63)); in get_new_mmu_context()
669 new_ctx |= (tlb_context_cache & CTX_VERSION_MASK); in get_new_mmu_context()
[all …]