diff options
Diffstat (limited to 'arch/arm/kernel/process.c')
-rw-r--r-- | arch/arm/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index a3089bacb8d8..7a7c4cea5523 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c | |||
@@ -226,6 +226,7 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start, | |||
226 | 226 | ||
227 | memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); | 227 | memset(&thread->cpu_context, 0, sizeof(struct cpu_context_save)); |
228 | 228 | ||
229 | #ifdef CONFIG_CPU_USE_DOMAINS | ||
229 | /* | 230 | /* |
230 | * Copy the initial value of the domain access control register | 231 | * Copy the initial value of the domain access control register |
231 | * from the current thread: thread->addr_limit will have been | 232 | * from the current thread: thread->addr_limit will have been |
@@ -233,6 +234,7 @@ copy_thread(unsigned long clone_flags, unsigned long stack_start, | |||
233 | * kernel/fork.c | 234 | * kernel/fork.c |
234 | */ | 235 | */ |
235 | thread->cpu_domain = get_domain(); | 236 | thread->cpu_domain = get_domain(); |
237 | #endif | ||
236 | 238 | ||
237 | if (likely(!(p->flags & PF_KTHREAD))) { | 239 | if (likely(!(p->flags & PF_KTHREAD))) { |
238 | *childregs = *current_pt_regs(); | 240 | *childregs = *current_pt_regs(); |