[POWERPC] Fix rheap alignment problem

Honor alignment parameter in the rheap allocator.  This is needed by
qe_lib.
Remove compile warning.

Signed-off-by: Pantelis Antoniou <[email protected]>
Signed-off-by: Li Yang <[email protected]>
Acked-by: Kumar Galak <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
Li Yang 2006-09-29 18:15:52 +08:00 • committed by Paul Mackerras
commit 5e98082358
3 changed files with 25 additions and 4 deletions

View file

@ -62,6 +62,10 @@ extern int rh_attach_region(rh_info_t * info, void *start, int size);
/* Detach a free region */
extern void *rh_detach_region(rh_info_t * info, void *start, int size);
/* Allocate the given size from the remote heap (with alignment) */
extern void *rh_alloc_align(rh_info_t * info, int size, int alignment,
const char *owner);
/* Allocate the given size from the remote heap */
extern void *rh_alloc(rh_info_t * info, int size, const char *owner);