summaryrefslogtreecommitdiffstats
path: root/bsd_eth_drivers/libbsdport/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsd_eth_drivers/libbsdport/malloc.c')
-rw-r--r--bsd_eth_drivers/libbsdport/malloc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/bsd_eth_drivers/libbsdport/malloc.c b/bsd_eth_drivers/libbsdport/malloc.c
new file mode 100644
index 0000000..116b0e5
--- /dev/null
+++ b/bsd_eth_drivers/libbsdport/malloc.c
@@ -0,0 +1,17 @@
+#include <stdlib.h>
+
+/* sometimes we want the original versions,
+ * not malloc/free shadowed by rtems' bsdnet port
+ */
+
+void *
+real_libc_malloc(size_t s)
+{
+ return malloc(s);
+}
+
+void
+real_libc_free(void *p)
+{
+ free(p);
+}