core: Make the core malloc and free thread safe.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 9 Apr 2011 12:42:22 +0000 (05:42 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 10 Apr 2011 01:27:07 +0000 (18:27 -0700)
commita100261df05a228f8590328c12d60ca0c7a03198
tree4b345954daa7da8137840e48aa46cddd202a914e
parente23d01c50f80fa14cefa0e62fb8741a28eaa9776
core: Make the core malloc and free thread safe.

Add a single semaphore to make malloc and free thread safe.

This is code I extracted from hpa's earlier effort at
importing lwip into syslinux.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
core/mem/free.c
core/mem/malloc.c
core/mem/malloc.h