diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-14 15:24:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-14 15:24:10 -0400 |
commit | 57e6bbcb4beb4c87aa93e78a1db08fdaab9ee65f (patch) | |
tree | dc71e7f1d448f3e3dceaeabeee506d4328f50a65 /arch/arm/kernel/process.c | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
parent | c2172ce2303051764829d4958bd50a11ada0590f (diff) |
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King:
"A number of fixes for the merge window, fixing a number of cases
missed when testing the uaccess code, particularly cases which only
show up with certain compiler versions"
* 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
ARM: 8431/1: fix alignement of __bug_table section entries
arm/xen: Enable user access to the kernel before issuing a privcmd call
ARM: domains: add memory dependencies to get_domain/set_domain
ARM: domains: thread_info.h no longer needs asm/domains.h
ARM: uaccess: fix undefined instruction on ARMv7M/noMMU
ARM: uaccess: remove unneeded uaccess_save_and_disable macro
ARM: swpan: fix nwfpe for uaccess changes
ARM: 8429/1: disable GCC SRA optimization
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(); |