process.c (9d4d8572a539ef807e21c196f145aa365fd52f0e) | process.c (4727dc20e0422211a0e0c72b1ace4ed6096df8a6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/kernel/process.c 4 * 5 * Copyright (C) 1996-2000 Russell King - Converted to ARM. 6 * Original Copyright (C) 1995 Linus Torvalds 7 */ 8#include <stdarg.h> --- 229 unchanged lines hidden (view full) --- 238 * Copy the initial value of the domain access control register 239 * from the current thread: thread->addr_limit will have been 240 * copied from the current thread via setup_thread_stack() in 241 * kernel/fork.c 242 */ 243 thread->cpu_domain = get_domain(); 244#endif 245 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * linux/arch/arm/kernel/process.c 4 * 5 * Copyright (C) 1996-2000 Russell King - Converted to ARM. 6 * Original Copyright (C) 1995 Linus Torvalds 7 */ 8#include <stdarg.h> --- 229 unchanged lines hidden (view full) --- 238 * Copy the initial value of the domain access control register 239 * from the current thread: thread->addr_limit will have been 240 * copied from the current thread via setup_thread_stack() in 241 * kernel/fork.c 242 */ 243 thread->cpu_domain = get_domain(); 244#endif 245 |
246 if (likely(!(p->flags & PF_KTHREAD))) { | 246 if (likely(!(p->flags & (PF_KTHREAD | PF_IO_WORKER)))) { |
247 *childregs = *current_pt_regs(); 248 childregs->ARM_r0 = 0; 249 if (stack_start) 250 childregs->ARM_sp = stack_start; 251 } else { 252 memset(childregs, 0, sizeof(struct pt_regs)); 253 thread->cpu_context.r4 = stk_sz; 254 thread->cpu_context.r5 = stack_start; --- 185 unchanged lines hidden --- | 247 *childregs = *current_pt_regs(); 248 childregs->ARM_r0 = 0; 249 if (stack_start) 250 childregs->ARM_sp = stack_start; 251 } else { 252 memset(childregs, 0, sizeof(struct pt_regs)); 253 thread->cpu_context.r4 = stk_sz; 254 thread->cpu_context.r5 = stack_start; --- 185 unchanged lines hidden --- |