summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 19:34:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-19 19:34:12 +0000
commitf75767b00c140692ac7146a41d6ed9049e904268 (patch)
tree5f950c8f8f8c04fab206ace0d3d7ca056b6e5236 /c/src/lib/libbsp/i386
parent2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-f75767b00c140692ac7146a41d6ed9049e904268.tar.bz2
2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/comm/i386-stub.c, shared/irq/irq_init.c: Fix warnings for prototypes, types, etc.
Diffstat (limited to 'c/src/lib/libbsp/i386')
-rw-r--r--c/src/lib/libbsp/i386/ChangeLog5
-rw-r--r--c/src/lib/libbsp/i386/shared/comm/i386-stub.c33
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/irq_init.c16
3 files changed, 25 insertions, 29 deletions
diff --git a/c/src/lib/libbsp/i386/ChangeLog b/c/src/lib/libbsp/i386/ChangeLog
index f23ba5c99c..9b9e3ebe85 100644
--- a/c/src/lib/libbsp/i386/ChangeLog
+++ b/c/src/lib/libbsp/i386/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * shared/comm/i386-stub.c, shared/irq/irq_init.c: Fix warnings for
+ prototypes, types, etc.
+
2008-08-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/comm/i386-stub-glue.c, shared/comm/i386-stub.c:
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 7c48e4642d..e5ca2b96dd 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
@@ -275,7 +275,7 @@ asm ("iret");
* old eip
*
*/
-extern void _catchException3 ();
+extern void _catchException3 (void);
asm (".text");
asm (".globl _catchException3");
asm ("_catchException3:");
@@ -285,7 +285,7 @@ asm ("pushl $3");
CALL_HOOK ();
/* Same thing for exception 1. */
-extern void _catchException1 ();
+extern void _catchException1 (void);
asm (".text");
asm (".globl _catchException1");
asm ("_catchException1:");
@@ -295,7 +295,7 @@ asm ("pushl $1");
CALL_HOOK ();
/* Same thing for exception 0. */
-extern void _catchException0 ();
+extern void _catchException0 (void);
asm (".text");
asm (".globl _catchException0");
asm ("_catchException0:");
@@ -305,7 +305,7 @@ asm ("pushl $0");
CALL_HOOK ();
/* Same thing for exception 4. */
-extern void _catchException4 ();
+extern void _catchException4 (void);
asm (".text");
asm (".globl _catchException4");
asm ("_catchException4:");
@@ -315,7 +315,7 @@ asm ("pushl $4");
CALL_HOOK ();
/* Same thing for exception 5. */
-extern void _catchException5 ();
+extern void _catchException5 (void);
asm (".text");
asm (".globl _catchException5");
asm ("_catchException5:");
@@ -325,7 +325,7 @@ asm ("pushl $5");
CALL_HOOK ();
/* Same thing for exception 6. */
-extern void _catchException6 ();
+extern void _catchException6 (void);
asm (".text");
asm (".globl _catchException6");
asm ("_catchException6:");
@@ -335,7 +335,7 @@ asm ("pushl $6");
CALL_HOOK ();
/* Same thing for exception 7. */
-extern void _catchException7 ();
+extern void _catchException7 (void);
asm (".text");
asm (".globl _catchException7");
asm ("_catchException7:");
@@ -345,7 +345,7 @@ asm ("pushl $7");
CALL_HOOK ();
/* Same thing for exception 8. */
-extern void _catchException8 ();
+extern void _catchException8 (void);
asm (".text");
asm (".globl _catchException8");
asm ("_catchException8:");
@@ -356,7 +356,7 @@ asm ("pushl $8");
CALL_HOOK ();
/* Same thing for exception 9. */
-extern void _catchException9 ();
+extern void _catchException9 (void);
asm (".text");
asm (".globl _catchException9");
asm ("_catchException9:");
@@ -366,7 +366,7 @@ asm ("pushl $9");
CALL_HOOK ();
/* Same thing for exception 10. */
-extern void _catchException10 ();
+extern void _catchException10 (void);
asm (".text");
asm (".globl _catchException10");
asm ("_catchException10:");
@@ -377,7 +377,7 @@ asm ("pushl $10");
CALL_HOOK ();
/* Same thing for exception 12. */
-extern void _catchException12 ();
+extern void _catchException12 (void);
asm (".text");
asm (".globl _catchException12");
asm ("_catchException12:");
@@ -388,7 +388,7 @@ asm ("pushl $12");
CALL_HOOK ();
/* Same thing for exception 16. */
-extern void _catchException16 ();
+extern void _catchException16 (void);
asm (".text");
asm (".globl _catchException16");
asm ("_catchException16:");
@@ -400,7 +400,7 @@ CALL_HOOK ();
/* For 13, 11, and 14 we have to deal with the CHECK_FAULT stuff. */
/* Same thing for exception 13. */
-extern void _catchException13 ();
+extern void _catchException13 (void);
asm (".text");
asm (".globl _catchException13");
asm ("_catchException13:");
@@ -412,7 +412,7 @@ asm ("pushl $13");
CALL_HOOK ();
/* Same thing for exception 11. */
-extern void _catchException11 ();
+extern void _catchException11 (void);
asm (".text");
asm (".globl _catchException11");
asm ("_catchException11:");
@@ -424,7 +424,7 @@ asm ("pushl $11");
CALL_HOOK ();
/* Same thing for exception 14. */
-extern void _catchException14 ();
+extern void _catchException14 (void);
asm (".text");
asm (".globl _catchException14");
asm ("_catchException14:");
@@ -439,6 +439,7 @@ CALL_HOOK ();
* remcomHandler is a front end for handle_exception. It moves the
* stack pointer into an area reserved for debugger use.
*/
+extern void remcomHandler (void);
asm ("_remcomHandler:");
asm (" popl %eax"); /* pop off return address */
asm (" popl %eax"); /* get the exception number */
@@ -930,8 +931,6 @@ handle_exception (int exceptionVector)
void
set_debug_traps (void)
{
- extern void remcomHandler ();
-
stackPtr = &remcomStack[STACKSIZE / sizeof (int) - 1];
exceptionHandler (0, _catchException0);
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_init.c b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
index dc0becbfe3..7b5853a61d 100644
--- a/c/src/lib/libbsp/i386/shared/irq/irq_init.c
+++ b/c/src/lib/libbsp/i386/shared/irq/irq_init.c
@@ -40,14 +40,6 @@ extern void rtems_irq_prologue_15(void);
* default idt vector
*/
extern void default_raw_idt_handler(void);
-/*
- * default on/off function
- */
-static void nop_func(void){}
-/*
- * default isOn function
- */
-static int not_connected(void) {return 0;}
static rtems_raw_irq_connect_data idtHdl[IDT_SIZE];
@@ -76,13 +68,13 @@ static rtems_irq_connect_data rtemsIrq[BSP_IRQ_LINES_NUMBER] = {
};
static rtems_raw_irq_connect_data defaultRawIrq = {
- /* vectorIdex, hdl , on , off , isOn */
- 0, default_raw_idt_handler ,nop_func , nop_func, not_connected
+ /* vectorIdex, hdl , on , off , isOn */
+ 0, default_raw_idt_handler ,NULL , NULL, NULL
};
static rtems_irq_connect_data defaultIrq = {
- /* vectorIdex, hdl , handle , on , off , isOn */
- 0, nop_func , 0 , nop_func , nop_func , not_connected
+ /* vectorIdex, hdl , handle, on, off, isOn */
+ 0, NULL , 0 , NULL, NULL, NULL
};
static rtems_irq_prio irqPrioTable[BSP_IRQ_LINES_NUMBER]={