SLOF/include
Alexey Kardashevskiy 8d96fe983f helpers: Fix SLOF_alloc_mem_aligned to meet callers expectation
Every caller of SLOF_alloc_mem_aligned() assumes the size is the first
argument while it is not.

This switches align and size and fixes random memory corruptions.

This is grep for SLOF_alloc_mem_aligned with this patch applied:

include/helpers.h|27| extern void *SLOF_alloc_mem_aligned(long size, long align);
lib/libveth/veth.c|103| buffer_list = SLOF_alloc_mem_aligned(8192, 4096);
lib/libveth/veth.c|105| rx_queue = SLOF_alloc_mem_aligned(rx_queue_len, 16);
lib/libvirtio/virtio-net.c|101| vq[i].desc = SLOF_alloc_mem_aligned(virtio_vring_size(vq[i].size), 4096);
slof/helpers.c|70| void *SLOF_alloc_mem_aligned(long size, long align)

Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2015-03-13 20:06:46 +11:00
..
ppc970 Use a global definition of sync() and mb() 2013-07-25 13:54:40 +10:00
ppcp7 Use a global definition of sync() and mb() 2013-07-25 13:54:40 +10:00
allocator.h Implement range allocator 2013-10-04 12:01:20 +05:30
byteorder.h Add bswap_{16,32,64}p 2013-12-06 16:30:18 +05:30
calculatecrc.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
helpers.h helpers: Fix SLOF_alloc_mem_aligned to meet callers expectation 2015-03-13 20:06:46 +11:00
libelf.h ELF: Enter LE binary in LE mode 2014-03-18 17:06:47 +11:00
macros.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
memmap.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
netdriver.h Add veth driver in libveth 2013-10-04 12:00:06 +05:30
pcd.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
romfs.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
rtas.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
rtas_table.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
termctrl.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00
xvect.h Initial import of slof-JX-1.7.0-4 2010-12-01 09:51:44 +11:00