summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-16 13:34:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-06-16 13:34:35 +0000
commitce57509cbd075f55a682c6b8730f1440b03ddf0c (patch)
tree9b7c62bcb1a909b33b300ee64c4255e2ad81d931 /cpukit
parent2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ce57509cbd075f55a682c6b8730f1440b03ddf0c.tar.bz2
2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk(). * libcsupport/src/putk.c: New file.
Diffstat (limited to '')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/include/rtems/bspIo.h1
-rw-r--r--cpukit/libcsupport/Makefile.am2
-rw-r--r--cpukit/libcsupport/src/putk.c30
4 files changed, 37 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index bdb1c03311..b8c36dd7c2 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk().
+ * libcsupport/src/putk.c: New file.
+
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/killinfo.c: Make easier to map coverage data.
diff --git a/cpukit/include/rtems/bspIo.h b/cpukit/include/rtems/bspIo.h
index 67c09fe816..0fb1ee1ca1 100644
--- a/cpukit/include/rtems/bspIo.h
+++ b/cpukit/include/rtems/bspIo.h
@@ -51,6 +51,7 @@ extern BSP_polling_getchar_function_type BSP_poll_char;
extern int getchark(void);
extern void vprintk(const char *fmt, va_list ap);
extern void printk(const char *fmt, ...);
+extern void putk(const char *s);
/*
* This routine is passed into RTEMS reporting functions
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am
index ec01a12946..059cb70a46 100644
--- a/cpukit/libcsupport/Makefile.am
+++ b/cpukit/libcsupport/Makefile.am
@@ -109,7 +109,7 @@ LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
- src/printk_plugin.c src/vprintk.c \
+ src/printk_plugin.c src/putk.c src/vprintk.c \
$(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
$(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
diff --git a/cpukit/libcsupport/src/putk.c b/cpukit/libcsupport/src/putk.c
new file mode 100644
index 0000000000..78d9f2abaf
--- /dev/null
+++ b/cpukit/libcsupport/src/putk.c
@@ -0,0 +1,30 @@
+/*
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/bspIo.h>
+
+/*
+ * putk
+ *
+ * Kernel putk (e.g. puts) function requiring minimal infrastrure.
+ */
+void putk(const char *s)
+{
+ const char *p = s;
+
+ for (p=s ; *p ; p++ )
+ BSP_output_char(*p);
+ BSP_output_char('\n');
+}