summaryrefslogtreecommitdiff
path: root/components/libc/armlibc/mem_std.c
blob: 017ed77fefb32b276a1d908e2fc1dc9b0e24722d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * File:    mem_std.c
 * Brief:   Replace memory management functions of arm standard c library
 *
 */

#include "rtthread.h"

/* avoid the heap and heap-using library functions supplied by arm */
#pragma import(__use_no_heap)

void * malloc(int n)
{
    return rt_malloc(n);
}

void * realloc(void *rmem, rt_size_t newsize)
{
    return rt_realloc(rmem, newsize);
}

void free(void *rmem)
{
    rt_free(rmem);
}