summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/ods68302/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 14:50:12 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-16 08:58:45 -0500
commitcba474ea2d7ba83d68f7ee7c2ce7028950677cc6 (patch)
treea16e9a9210d7872b9c00bdcdb5fa28cd8baf0168 /c/src/lib/libbsp/m68k/ods68302/startup
parentlibcpu/arm/shared/../mmu: Fix warnings (diff)
downloadrtems-cba474ea2d7ba83d68f7ee7c2ce7028950677cc6.tar.bz2
m68k/ods68302: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/m68k/ods68302/startup')
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c15
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c6
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/memcheck.c31
-rw-r--r--c/src/lib/libbsp/m68k/ods68302/startup/trace.c6
4 files changed, 19 insertions, 39 deletions
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c b/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
index 0ea119ce9a..45bfe42725 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
@@ -1,9 +1,7 @@
-/*****************************************************************************/
/*
- Hooks for GDB
-
+ * Hooks for GDB
+ *
*/
-/*****************************************************************************/
#include <bsp.h>
#include <rtems/m68k/m68302.h>
@@ -11,6 +9,15 @@
static int initialised = 0;
+/*
+ * This file does not intend to make things part of the public interface.
+ * Methods here are only available to the GDB stub. So prototypes are
+ * needed to avoid warnings.
+ */
+void putDebugChar(char ch);
+char getDebugChar(void);
+void exceptionHandler(unsigned int vector, void *handler);
+
void putDebugChar(char ch)
{
if (!initialised)
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c b/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
index e82bb72504..d9533efa06 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/m68k-stub.c
@@ -537,6 +537,12 @@ __asm__ (" movel %d0,%sp@-"); /* push exception onto stack */
__asm__ (" jbsr handle_exception"); /* this never returns */
__asm__ (" rts"); /* return */
+/*
+ * This is only called from assembly in this file. This file is a self
+ * contained gdb stub.
+ */
+void _returnFromException(Frame *frame);
+
void _returnFromException(Frame *frame)
{
/* if no passed in frame, use the last one */
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/memcheck.c b/c/src/lib/libbsp/m68k/ods68302/startup/memcheck.c
deleted file mode 100644
index 74d8f925bd..0000000000
--- a/c/src/lib/libbsp/m68k/ods68302/startup/memcheck.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*****************************************************************************/
-/*
- Memory check routines.
-
- The production test is a destrucive full test.
- The boot test is a minimal, non-desctructive.
- The partial memory test performs a scetion at a time, and gets
- called in a repeated fashion to completely check the memory,
-
- */
-/*****************************************************************************/
-
-void
-production_memory_test(void)
-{
-}
-
-void
-boot_memory_test(void)
-{
-}
-
-void
-reset_partial_memory_test(void)
-{
-}
-
-void
-partial_memory_test(void)
-{
-}
diff --git a/c/src/lib/libbsp/m68k/ods68302/startup/trace.c b/c/src/lib/libbsp/m68k/ods68302/startup/trace.c
index 46114eabc1..efe8abf3dd 100644
--- a/c/src/lib/libbsp/m68k/ods68302/startup/trace.c
+++ b/c/src/lib/libbsp/m68k/ods68302/startup/trace.c
@@ -1,9 +1,7 @@
-/*****************************************************************************/
/*
- Trace Exception dumps a back trace to the debug serial port
-
+ * Trace Exception dumps a back trace to the debug serial port
+ *
*/
-/*****************************************************************************/
#include <bsp.h>
#include <debugport.h>