FRV: Specify the minimum slab/kmalloc alignment

Specify the minimum slab/kmalloc alignment to be 8 bytes. This fixes a
crash when SLOB is selected as the memory allocator. The FRV arch needs
this so that it can use the load- and store-double instructions without
faulting. By default SLOB sets the minimum to be 4 bytes.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by David Howells and committed by Linus Torvalds dc1d60a0 5e55843b

+7
+7
include/asm-frv/mem-layout.h
··· 31 32 #define PAGE_MASK (~(PAGE_SIZE-1)) 33 34 /*****************************************************************************/ 35 /* 36 * virtual memory layout from kernel's point of view
··· 31 32 #define PAGE_MASK (~(PAGE_SIZE-1)) 33 34 + /* 35 + * the slab must be aligned such that load- and store-double instructions don't 36 + * fault if used 37 + */ 38 + #define ARCH_KMALLOC_MINALIGN (sizeof(long) * 2) 39 + #define ARCH_SLAB_MINALIGN (sizeof(long) * 2) 40 + 41 /*****************************************************************************/ 42 /* 43 * virtual memory layout from kernel's point of view