Verify that malloc/realloc/free aren't called from ISR.
authorAdam Green <adamgr@foo.bar>
Fri, 1 Mar 2013 08:36:13 +0000 (00:36 -0800)
committerAdam Green <adamgr@foo.bar>
Fri, 1 Mar 2013 08:36:13 +0000 (00:36 -0800)
commitb4e5c8301e9b4d4b74e72d0f8330d944032a4b5e
treecc81e8234bb0ec7744f930bb0af937a7d7fdb74e
parent5579f7a8efe4e370d9b5968e0a5fb1ff605d0537
Verify that malloc/realloc/free aren't called from ISR.

This was previously done with the malloc_lock() routine but this isn't
called from the newlib nano routines used in the new build.  This new
code provides wraps for malloc/realloc/free to first make this check of
the IPSR register and then call the real routines if not being called
from ISR.
build/common.mk
build/mbed_custom.cpp