diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-14 15:11:35 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-14 15:11:35 +0900 |
commit | 20e7c297efeca0861adcca073a0d283da659834b (patch) | |
tree | ad92c21a2029b7fed58e2be880541231ebcd3b2a /arch/sh/mm | |
parent | 9a7b7739f9dba4014fc93531e4c2b6efac41b0a7 (diff) | |
download | kernel_goldelico_gta04-20e7c297efeca0861adcca073a0d283da659834b.zip kernel_goldelico_gta04-20e7c297efeca0861adcca073a0d283da659834b.tar.gz kernel_goldelico_gta04-20e7c297efeca0861adcca073a0d283da659834b.tar.bz2 |
sh: Ensure fixmap and store queue space can co-exist.
At the moment the top of the fixmap space is calculated from P4SEG, which
places it at the end of the store queue space when that API is enabled.
Make sure we use P3_ADDR_MAX here instead to find the proper address
limit. With this done, it's also possible to switch to the generic
vmalloc address range check now that VMALLOC_START/END encapsulate the
translatable areas that we care about.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r-- | arch/sh/mm/fault_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/mm/fault_32.c b/arch/sh/mm/fault_32.c index a469b95..39e291c 100644 --- a/arch/sh/mm/fault_32.c +++ b/arch/sh/mm/fault_32.c @@ -168,8 +168,8 @@ static noinline int vmalloc_fault(unsigned long address) pmd_t *pmd_k; pte_t *pte_k; - /* Make sure we are in vmalloc/module/P3 area: */ - if (!(address >= P3SEG && address < P3_ADDR_MAX)) + /* Make sure we are in vmalloc/module area: */ + if (!is_vmalloc_addr((void *)address)) return -1; /* |