diff options
Diffstat (limited to 'arch/powerpc/mm/mmu_context_book3s64.c')
-rw-r--r-- | arch/powerpc/mm/mmu_context_book3s64.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/mm/mmu_context_book3s64.c b/arch/powerpc/mm/mmu_context_book3s64.c index 6d724dab27c2..846cbad45fce 100644 --- a/arch/powerpc/mm/mmu_context_book3s64.c +++ b/arch/powerpc/mm/mmu_context_book3s64.c | |||
@@ -93,11 +93,11 @@ static int hash__init_new_context(struct mm_struct *mm) | |||
93 | return index; | 93 | return index; |
94 | 94 | ||
95 | /* | 95 | /* |
96 | * We do switch_slb() early in fork, even before we setup the | 96 | * In the case of exec, use the default limit, |
97 | * mm->context.addr_limit. Default to max task size so that we copy the | 97 | * otherwise inherit it from the mm we are duplicating. |
98 | * default values to paca which will help us to handle slb miss early. | ||
99 | */ | 98 | */ |
100 | mm->context.addr_limit = DEFAULT_MAP_WINDOW_USER64; | 99 | if (!mm->context.addr_limit) |
100 | mm->context.addr_limit = DEFAULT_MAP_WINDOW_USER64; | ||
101 | 101 | ||
102 | /* | 102 | /* |
103 | * The old code would re-promote on fork, we don't do that when using | 103 | * The old code would re-promote on fork, we don't do that when using |