summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-12 19:16:33 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:33:35 -0500
commita36094f1570c396af32b74062f6341cd19ac0515 (patch)
treed7435ee7e57c499c412a44643e49e7287f94f3ab /c/src/lib/libbsp/shared
parentm68k/mcf5225x: Fix warnings (diff)
downloadrtems-a36094f1570c396af32b74062f6341cd19ac0515.tar.bz2
libbsp/shared/umon: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/umon/monlib.c27
-rw-r--r--c/src/lib/libbsp/shared/umon/tfsDriver.c4
-rw-r--r--c/src/lib/libbsp/shared/umon/umon.h11
3 files changed, 39 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/shared/umon/monlib.c b/c/src/lib/libbsp/shared/umon/monlib.c
index 74770906c1..36f9158a36 100644
--- a/c/src/lib/libbsp/shared/umon/monlib.c
+++ b/c/src/lib/libbsp/shared/umon/monlib.c
@@ -181,6 +181,31 @@ static int (*_moncom)(int,void *,void *, void *);
#define GENERIC_MONLOCK monLock
#define GENERIC_MONUNLOCK monUnlock
+/*
+ * Prototype these to avoid warnings but let them appear varargs to user.
+ */
+extern void mon_memtrace(
+ char *fmt,
+ int a1, int a2, int a3, int a4, int a5, int a6,
+ int a7, int a8, int a9, int a10, int a11, int a12
+);
+extern int mon_printf(
+ char *fmt,
+ int a1, int a2, int a3, int a4, int a5, int a6,
+ int a7, int a8, int a9, int a10, int a11, int a12
+);
+extern int mon_cprintf(
+ char *fmt,
+ int a1, int a2, int a3, int a4, int a5, int a6,
+ int a7, int a8, int a9, int a10, int a11, int a12
+);
+extern int mon_sprintf(
+ char *buf,
+ char *fmt,
+ int a1, int a2, int a3, int a4, int a5, int a6,
+ int a7, int a8, int a9, int a10, int a11, int a12
+);
+
/**************************************************************************
*
* monConnect():
@@ -311,6 +336,7 @@ monConnect(int (*mon)(int,void *,void *,void *),
*/
static int ignorelock = 0;
+#if KEEP_TO_STAY_IN_SYNC_WITH_UPSTREAM_BUT_UNUSED
static void
DisableMonLock(void)
{
@@ -322,6 +348,7 @@ EnableMonLock(void)
{
ignorelock = 0;
}
+#endif
/* monLock() & monUnlock():
* Used by all of the wrapper functions below this point to call
diff --git a/c/src/lib/libbsp/shared/umon/tfsDriver.c b/c/src/lib/libbsp/shared/umon/tfsDriver.c
index 0974ab1567..d4b67a1a8b 100644
--- a/c/src/lib/libbsp/shared/umon/tfsDriver.c
+++ b/c/src/lib/libbsp/shared/umon/tfsDriver.c
@@ -450,7 +450,7 @@ static int rtems_tfs_open(
static ssize_t rtems_tfs_read(
rtems_libio_t *iop,
void *buffer,
- uint32_t count
+ size_t count
)
{
int ret, fd;
@@ -511,7 +511,7 @@ static int rtems_tfs_close(
static ssize_t rtems_tfs_write(
rtems_libio_t *iop,
const void *buffer,
- uint32_t count
+ size_t count
)
{
int ret, fd;
diff --git a/c/src/lib/libbsp/shared/umon/umon.h b/c/src/lib/libbsp/shared/umon/umon.h
index bff0f2b1a6..3c5bdf9f34 100644
--- a/c/src/lib/libbsp/shared/umon/umon.h
+++ b/c/src/lib/libbsp/shared/umon/umon.h
@@ -46,10 +46,19 @@ void *rtems_bsp_get_umon_monptr(void);
*
* @param[in] path is the mount point
*
- * @return This method returns 0 on sucess.
+ * @return This method returns 0 on success.
*/
int rtems_initialize_tfs_filesystem(
const char *path
);
+/**
+ * @brief Read from MicroMonitor Port
+ *
+ * This method reads a character from the MicroMonitor console.
+ *
+ * @return This method returns a character.
+ */
+int umoncons_poll_read(int minor);
+
#endif