Introduce ofmem_posix_memalign() function for arbitrary alignment.
commit2b93cf4f6685966c4ae9a3671d441e3854e14ad2
authormcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 30 Dec 2010 13:56:14 +0000 (30 13:56 +0000)
committermcayland <mcayland@f158a5a8-5612-0410-a976-696ce0be7e32>
Thu, 30 Dec 2010 13:56:14 +0000 (30 13:56 +0000)
tree855537a288bd1c12bc372e0aaa353dbbb2a5ea39
parent5a2cb4628bec349a24c1d9018c54aa457e940826
Introduce ofmem_posix_memalign() function for arbitrary alignment.

Rework ofmem_malloc() so that it takes a parameter specifying the alignment for the allocation and then change the API
to match that of posix_memalign(). Then create ofmem_malloc() as a simple wrapper function onto ofmem_posix_memalign()
using a default alignment of CONFIG_OFMEM_MALLOC_ALIGN.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
git-svn-id: svn://openbios.org/openbios/trunk/openbios-devel@992 f158a5a8-5612-0410-a976-696ce0be7e32
include/libopenbios/ofmem.h
libopenbios/ofmem_common.c