summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-09 12:56:18 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-10 10:17:17 -0500
commit4977f07e6872d7253535a7ec67b153254e1c4088 (patch)
treec70d92497b2b9d60fb0b5e4f89428477f0d9d644 /c/src/lib/libbsp/i386/shared/comm/i386-stub.c
parentgumstix/include/bsp.h: Do not include libchip/serial to avoid conflicts when ... (diff)
downloadrtems-4977f07e6872d7253535a7ec67b153254e1c4088.tar.bz2
i386/pc386: Eliminate multiple warnings
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/i386-stub.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
index 578b0189d4..8113d7ed2c 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
@@ -607,7 +607,7 @@ set_char (char *addr, int val)
/* return a pointer to the last char put in buf (null) */
/* If MAY_FAULT is non-zero, then we should set mem_err in response to
a fault; if zero treat a fault like any other fault in the stub. */
-char *
+static char *
mem2hex (char *mem, char *buf, int count, int may_fault)
{
int i;
@@ -654,7 +654,7 @@ hex2mem (char *buf, char *mem, int count, int may_fault)
/* this function takes the 386 exception vector and attempts to
translate this number into a unix compatible signal value */
-int
+static int
computeSignal (int exceptionVector)
{
int sigval;
@@ -715,7 +715,7 @@ computeSignal (int exceptionVector)
/* WHILE WE FIND NICE HEX CHARS, BUILD AN INT */
/* RETURN NUMBER OF CHARS PROCESSED */
/**********************************************/
-int
+static int
hexToInt (char **ptr, int *intValue)
{
int numChars = 0;
@@ -742,8 +742,12 @@ hexToInt (char **ptr, int *intValue)
/*
* This function does all command procesing for interfacing to gdb.
+ *
+ * NOTE: This method is called from assembly code so must be marked
+ * as used.
*/
-void
+static void handle_exception (int exceptionVector) __attribute__((used));
+static void
handle_exception (int exceptionVector)
{
int sigval;