diff options
-rw-r--r-- | arch/tile/mm/init.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index ace32d7d3864..5bd252e3fdc5 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c | |||
@@ -233,9 +233,12 @@ static pgprot_t __init init_pgprot(ulong address) | |||
233 | if (kdata_huge) | 233 | if (kdata_huge) |
234 | return construct_pgprot(PAGE_KERNEL, PAGE_HOME_HASH); | 234 | return construct_pgprot(PAGE_KERNEL, PAGE_HOME_HASH); |
235 | 235 | ||
236 | /* We map the aliased pages of permanent text inaccessible. */ | 236 | /* |
237 | * We map the aliased pages of permanent text so we can | ||
238 | * update them if necessary, for ftrace, etc. | ||
239 | */ | ||
237 | if (address < (ulong) _sinittext - CODE_DELTA) | 240 | if (address < (ulong) _sinittext - CODE_DELTA) |
238 | return PAGE_NONE; | 241 | return construct_pgprot(PAGE_KERNEL, PAGE_HOME_HASH); |
239 | 242 | ||
240 | /* We map read-only data non-coherent for performance. */ | 243 | /* We map read-only data non-coherent for performance. */ |
241 | if ((address >= (ulong) __start_rodata && | 244 | if ((address >= (ulong) __start_rodata && |