Skip to content

Commit

Permalink
xtensa: enforce slab alignment to maximum register width
Browse files Browse the repository at this point in the history
XCHAL_DATA_WIDTH is the maximum register width, slab caches should be
aligned to this.

Theoretical fix as all variants have had an XCHAL_DATA_WIDTH of 4
(wordsize) for now.  But the S6000 variant will raise this to 16.

Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Johannes Weiner <jw@emlix.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Oskar Schirmer authored and Chris Zankel committed Apr 3, 2009
1 parent c947a58 commit a81cbd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
# error Linux requires the Xtensa Windowed Registers Option.
#endif

#define ARCH_SLAB_MINALIGN XCHAL_DATA_WIDTH

/*
* User space process size: 1 GB.
* Windowed call ABI requires caller and callee to be located within the same
Expand Down

0 comments on commit a81cbd2

Please sign in to comment.