diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-14 08:11:35 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-14 08:11:35 +0200 |
commit | 20e7c297efeca0861adcca073a0d283da659834b (patch) | |
tree | ad92c21a2029b7fed58e2be880541231ebcd3b2a /arch/sh/include | |
parent | sh64: Utilize thread fault code encoding. (diff) | |
download | linux-20e7c297efeca0861adcca073a0d283da659834b.tar.xz linux-20e7c297efeca0861adcca073a0d283da659834b.zip |
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/include')
-rw-r--r-- | arch/sh/include/asm/fixmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index bd7e79a12653..5f1ca55bcec8 100644 --- a/arch/sh/include/asm/fixmap.h +++ b/arch/sh/include/asm/fixmap.h @@ -94,7 +94,7 @@ extern void __clear_fixmap(enum fixed_addresses idx, pgprot_t flags); * at the top of mem.. */ #ifdef CONFIG_SUPERH32 -#define FIXADDR_TOP (P4SEG - PAGE_SIZE) +#define FIXADDR_TOP (P3_ADDR_MAX - PAGE_SIZE) #else #define FIXADDR_TOP (0xff000000 - PAGE_SIZE) #endif |