summaryrefslogtreecommitdiff
path: root/rtems/rtems_bsdnet_malloc_starvation.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtems/rtems_bsdnet_malloc_starvation.c')
-rw-r--r--rtems/rtems_bsdnet_malloc_starvation.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/rtems/rtems_bsdnet_malloc_starvation.c b/rtems/rtems_bsdnet_malloc_starvation.c
new file mode 100644
index 0000000..c5ccd8c
--- /dev/null
+++ b/rtems/rtems_bsdnet_malloc_starvation.c
@@ -0,0 +1,19 @@
+#include <machine/rtems-bsd-kernel-space.h>
+
+/*
+ * Routine called when malloc() is not succeeding. This can be overridden
+ * by a BSP.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdio.h>
+#include <rtems/rtems_bsdnet.h>
+
+void
+rtems_bsdnet_malloc_starvation(void)
+{
+ printf ("rtems_bsdnet_malloc still waiting.\n");
+}