浏览代码

fix compile error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1670 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc@gmail.com 13 年之前
父节点
当前提交
a8f51bf63a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/rtthread.h

+ 5 - 0
include/rtthread.h

@@ -184,6 +184,11 @@ void rt_memory_info(rt_uint32_t *total,
 	rt_uint32_t *used,
 	rt_uint32_t *max_used);
 
+#ifdef RT_USING_SLAB
+void *rt_page_alloc(rt_size_t npages);
+void rt_page_free(void *addr, rt_size_t npages);
+#endif
+
 #ifdef RT_USING_HOOK
 void rt_malloc_sethook(void (*hook)(void *ptr, rt_uint32_t size));
 void rt_free_sethook(void (*hook)(void *ptr));