[Yaffs] [PATCH 05/20] Add memory management

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Xiangfu Liu
Date:  
To: yaffs
CC: sebastien
Old-Topics: [Yaffs] [PATCH 04/20] Compile needed yaffs_summary
New-Topics: [Yaffs] [PATCH 06/20] Moved memory management.
Subject: [Yaffs] [PATCH 05/20] Add memory management
From: Sebastien Bourdeauducq <>

---
rtems/rtems_yaffs.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/rtems/rtems_yaffs.c b/rtems/rtems_yaffs.c
index 66071a5..d74d369 100644
--- a/rtems/rtems_yaffs.c
+++ b/rtems/rtems_yaffs.c
@@ -36,6 +36,18 @@

#include "rtems_yaffs.h"

+/* memory management */
+
+void *yaffsfs_malloc(size_t size)
+{
+    return malloc(size);
+}
+
+void yaffsfs_free(void *ptr)
+{
+    free(ptr);
+}
+
 /* locking */


static void ylock(struct yaffs_dev *dev)
--
1.7.4.1