]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-frv/mem-layout.h
Fix FRV minimum slab/kmalloc alignment
[linux-2.6-omap-h63xx.git] / include / asm-frv / mem-layout.h
index 83532252b8be17f401d380ed78a0d5df5bbf7b42..2947764fc0e042b997b71078246701c19cef5e46 100644 (file)
 
 #define PAGE_MASK                      (~(PAGE_SIZE-1))
 
+/*
+ * the slab must be aligned such that load- and store-double instructions don't
+ * fault if used
+ */
+#define        ARCH_KMALLOC_MINALIGN           8
+#define        ARCH_SLAB_MINALIGN              8
+
 /*****************************************************************************/
 /*
  * virtual memory layout from kernel's point of view
@@ -60,7 +67,7 @@
  */
 #define BRK_BASE                       __UL(2 * 1024 * 1024 + PAGE_SIZE)
 #define STACK_TOP                      __UL(2 * 1024 * 1024)
-#define STACK_TOP_MAX  STACK_TOP
+#define STACK_TOP_MAX                  __UL(0xc0000000)
 
 /* userspace process size */
 #ifdef CONFIG_MMU