Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc1d60a0 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5e55843b
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -31,6 +31,13 @@


#define PAGE_MASK			(~(PAGE_SIZE-1))
#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		(sizeof(long) * 2)
#define	ARCH_SLAB_MINALIGN		(sizeof(long) * 2)

/*****************************************************************************/
/*****************************************************************************/
/*
/*
 * virtual memory layout from kernel's point of view
 * virtual memory layout from kernel's point of view