|
|
|
@ -86,10 +86,10 @@ void _exit(int n)
|
|
|
|
|
* @brief Allocate memory from the heap.
|
|
|
|
|
*
|
|
|
|
|
* The current heap implementation is very rudimentary, it is only able to allocate
|
|
|
|
|
* memory. But it does not
|
|
|
|
|
* - have any means to free memory again
|
|
|
|
|
* memory. But it does not have any means to free memory again
|
|
|
|
|
*
|
|
|
|
|
* @return [description]
|
|
|
|
|
* @return pointer to the newly allocated memory on success
|
|
|
|
|
* @return pointer set to address `-1` on failure
|
|
|
|
|
*/
|
|
|
|
|
void *_sbrk_r(struct _reent *r, ptrdiff_t incr)
|
|
|
|
|
{
|
|
|
|
|