Virtual memory map to accomodate 64 MB SPI flash
We use a 64 MB SPI NOR flash on Prowl which the SPI flash driver
ioremaps() *twice* into the vmalloc area. As a result, we needed to
increase the size of the vmalloc area from 64MB to 256MB. The existing
virtual memory layout did not accommodate this change. We had to tweak
it a little. Note that TASK_UNMAPPED_BASE needs to be a multiple of
PAGE_SIZE.
diff --git a/arch/arc/include/asm/processor.h b/arch/arc/include/asm/processor.h
index 9fa23f2..b59dec4 100644
--- a/arch/arc/include/asm/processor.h
+++ b/arch/arc/include/asm/processor.h
@@ -123,7 +123,7 @@
*/
#define QTN_MEM_ARCH 1
-#define QTN_MEM_FIXED_TASK_SIZE 1
+#define QTN_MEM_FIXED_TASK_SIZE 0
#if QTN_MEM_ARCH
/* QTN defined memory arch */
@@ -177,6 +177,6 @@
/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
*/
-#define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
+#define TASK_UNMAPPED_BASE ( ( TASK_SIZE / 3) & PAGE_MASK)
#endif /* __ASM_ARC_PROCESSOR_H */