[Cbe-oss-dev] spufs: make isolated loader properly aligned (take 2)

Christoph Hellwig hch at lst.de
Sat Aug 11 13:56:46 EST 2007


On Fri, Aug 10, 2007 at 11:27:55PM +0200, Sebastian Siewior wrote:
> According to the comment in spufs_init_isolated_loader(), the isolated loader
> should be aligned on a 16 byte boundary. ARCH_{KMALLOC|SLAB}_MINALIGN is not
> defined so 8 byte alignment is guaranteed.
> This patch enforces page based alignment via vmalloc (compile time tested).

Please use get_free_pages instead.  vmalloc means we need to setup
pagetables and walk them on every access, aswell as wasting a guard page
for every allocation.




More information about the cbe-oss-dev mailing list