On Thu, Sep 04, 2014 at 06:24:38PM +0200, Marc MarĂ wrote: > This malloc is a basic interface implementation that works for any platform. > It should be replaced in the future for a real malloc implementation for each > of the platforms. > > Signed-off-by: Marc MarĂ <marc.mari.barc...@gmail.com> > --- > tests/libqos/malloc-generic.c | 54 > +++++++++++++++++++++++++++++++++++++++++ > tests/libqos/malloc-generic.h | 18 ++++++++++++++ > 2 files changed, 72 insertions(+) > create mode 100644 tests/libqos/malloc-generic.c > create mode 100644 tests/libqos/malloc-generic.h
malloc-pc.c is the "real malloc implementation" you speak of. Just pc_alloc_init_flags() needs to be tweaked for the memory map of a particular platform. I'm not sure I see the point of this patch. Instead we should reuse malloc-pc.c.
pgp_isk2_u9Oi.pgp
Description: PGP signature