sh: Ensure fixmap and store queue space can co-exist.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2012 06:11:35 +0000 (15:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 14 May 2012 06:11:35 +0000 (15:11 +0900)
commit20e7c297efeca0861adcca073a0d283da659834b
treead92c21a2029b7fed58e2be880541231ebcd3b2a
parent9a7b7739f9dba4014fc93531e4c2b6efac41b0a7
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>
arch/sh/include/asm/fixmap.h
arch/sh/mm/fault_32.c