summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:12:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-10-31 20:12:09 +0000
commit7657233d5a078a29ac61ae7bc7d48d148ec208b2 (patch)
tree0ea5d9709565d9380f1326997d3d26e52ca20306
parent5efc97876bda6c9fe5d3bd48e3fa3f9cd4867a48 (diff)
downloadrtems-7657233d5a078a29ac61ae7bc7d48d148ec208b2.tar.bz2
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* bootloader/em86.c, console/inch.c, console/polled_io.c, irq/irq.c, motorola/motorola.c, pci/detect_raven_bridge.c, vectors/vectors_init.c: Removed warnings.
-rw-r--r--c/src/lib/libbsp/powerpc/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/em86.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/inch.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/console/polled_io.c3
-rw-r--r--c/src/lib/libbsp/powerpc/shared/irq/irq.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/motorola/motorola.c6
-rw-r--r--c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c2
-rw-r--r--c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c2
8 files changed, 21 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/ChangeLog b/c/src/lib/libbsp/powerpc/shared/ChangeLog
index 57cf198bca..e985fee146 100644
--- a/c/src/lib/libbsp/powerpc/shared/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/shared/ChangeLog
@@ -1,3 +1,9 @@
+2002-10-31 Joel Sherrill <joel@OARcorp.com>
+
+ * bootloader/em86.c, console/inch.c, console/polled_io.c, irq/irq.c,
+ motorola/motorola.c, pci/detect_raven_bridge.c,
+ vectors/vectors_init.c: Removed warnings.
+
2002-07-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* bootloader/em86real.S: Fix syntax error in comment near line 1185.
diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c b/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
index 7e30089f49..5b9772577f 100644
--- a/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
+++ b/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
@@ -29,8 +29,10 @@
#ifdef __BOOT__
#include "bootldr.h"
#include <limits.h>
+#include <rtems/bspIo.h>
#endif
+
/* Code options, put them on the compiler command line */
/* #define EIP_STATS */ /* EIP based profiling */
/* #undef EIP_STATS */
diff --git a/c/src/lib/libbsp/powerpc/shared/console/inch.c b/c/src/lib/libbsp/powerpc/shared/console/inch.c
index eaa6224529..4aa395d4d7 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/inch.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/inch.c
@@ -83,7 +83,7 @@ _IBMPC_scankey(char *outChar)
static int caps_pressed = 0;
static int extended = 0;
- *outChar = NULL; /* default value if we return FALSE */
+ *outChar = 0; /* default value if we return FALSE */
/* Read keyboard controller, toggle enable */
inChar=kbd_inb(KBD_CTL);
diff --git a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
index 6c3e0b401e..18f67ac381 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
+++ b/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
@@ -41,6 +41,9 @@
#ifdef __BOOT__
extern void boot_udelay();
+void * __palloc(u_long);
+void pfree(void *);
+
#endif
typedef unsigned long long u64;
diff --git a/c/src/lib/libbsp/powerpc/shared/irq/irq.c b/c/src/lib/libbsp/powerpc/shared/irq/irq.c
index 939e8678dc..d62c29be3d 100644
--- a/c/src/lib/libbsp/powerpc/shared/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/shared/irq/irq.c
@@ -322,7 +322,7 @@ void C_dispatch_irq_handler (CPU_Interrupt_frame *frame, unsigned int excNum)
{
register unsigned int irq;
register unsigned isaIntr; /* boolean */
- register unsigned oldMask; /* old isa pic masks */
+ register unsigned oldMask = 0; /* old isa pic masks */
register unsigned newMask; /* new isa pic masks */
register unsigned msr;
register unsigned new_msr;
diff --git a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
index 1367ac4c02..9b7057e849 100644
--- a/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
+++ b/c/src/lib/libbsp/powerpc/shared/motorola/motorola.c
@@ -13,8 +13,10 @@
*/
-#include <bsp/motorola.h>
-#include <libcpu/io.h>
+#include <bsp/motorola.h>
+#include <rtems/bspIo.h>
+#include <libcpu/io.h>
+#include <string.h>
typedef struct {
/*
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
index aab1b88187..fdb4eb49e7 100644
--- a/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
+++ b/c/src/lib/libbsp/powerpc/shared/pci/detect_raven_bridge.c
@@ -10,6 +10,8 @@
#include <bsp/residual.h>
#include <bsp/openpic.h>
+#include <rtems/bspIo.h>
+
#define RAVEN_MPIC_IOSPACE_ENABLE 0x1
#define RAVEN_MPIC_MEMSPACE_ENABLE 0x2
#define RAVEN_MASTER_ENABLE 0x4
diff --git a/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c b/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
index 40b360e461..cb4c44b348 100644
--- a/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
+++ b/c/src/lib/libbsp/powerpc/shared/vectors/vectors_init.c
@@ -124,6 +124,8 @@ int except_always_enabled(const rtems_raw_except_connect_data* ptr)
return 1;
}
+int mpc60x_vector_is_valid(rtems_vector vector);
+
void initialize_exceptions()
{
int i;