diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-09-14 17:30:55 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-09-19 14:01:56 +0200 |
commit | 2e1626744e8da01eb5a2a0aaa3f365e41f1feb49 (patch) | |
tree | c6cfa4d7777c2b16ceb42d72f85921409b003e1d /arch/powerpc/kernel/process.c | |
parent | powerpc/64s: xmon do not dump hash fields when using radix mode (diff) | |
download | linux-2e1626744e8da01eb5a2a0aaa3f365e41f1feb49.tar.xz linux-2e1626744e8da01eb5a2a0aaa3f365e41f1feb49.zip |
powerpc/64s/hash: provide arch_setup_exec hooks for hash slice setup
This will be used by the SLB code in the next patch, but for now this
sets the slb_addr_limit to the correct size for 32-bit tasks.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 913c5725cdb2..e4feb45ae4c6 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -1482,6 +1482,15 @@ void flush_thread(void) #endif /* CONFIG_HAVE_HW_BREAKPOINT */ } +#ifdef CONFIG_PPC_BOOK3S_64 +void arch_setup_new_exec(void) +{ + if (radix_enabled()) + return; + hash__setup_new_exec(); +} +#endif + int set_thread_uses_vas(void) { #ifdef CONFIG_PPC_BOOK3S_64 |