[U-Boot] Early malloc() summary

Marek Vasut
2012-08-14T23:56:32Z

Dear Graeme Russ,

[...]

>
> Third path is dm_malloc() - Although ugly, it has a few nicities...

Thinking about dm_malloc() ... if it's entirely different, the semantics can be
adjusted too ... say to "int dm_malloc(void **ptr, size_t size);":

- return int: error code
- **ptr: pointer to allocated memory, that way we can possibly implement pointer
tracking (of course that'd need more work, might be a debug feature)
- size: size of allocated area

Of course that'd need -- in case you'd copy pointers -- another function to do
so. etc etc.

[...]

off and out.

Best regards,
Marek Vasut