summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-04-25 14:22:07 +0800
committerBernard Xiong <[email protected]>2013-04-25 14:22:07 +0800
commit4afdf44da2ec0bb9ea5cadde4b0b31b5c0f68c1b (patch)
treefb544b8d2b2861f576a7977806ec36baba280f71 /include/rtdef.h
parent608bf2cb3deda4b682aa1a9a9f2a71a4c0416a48 (diff)
add RT_KERNEL_MALLOC/FREE
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 8e39f2f479..a0497517b1 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -155,6 +155,15 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define RT_MM_PAGE_MASK (RT_MM_PAGE_SIZE - 1)
#define RT_MM_PAGE_BITS 12
+/* kernel malloc definitions */
+#ifndef RT_KERNEL_MALLOC
+#define RT_KERNEL_MALLOC(sz) rt_malloc(sz)
+#endif
+
+#ifndef RT_KERNEL_FREE
+#define RT_KERNEL_FREE(ptr) rt_free(ptr)
+#endif
+
/**
* @addtogroup Error
*/