Removed warnings.

This commit is contained in:
Joel Sherrill
1999-12-13 22:10:45 +00:00
parent da8ae79b3e
commit c629812c01
13 changed files with 22 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
#include <stdio.h>
static ctermid_name = "/dev/console";
static char *ctermid_name = "/dev/console";
char *ctermid(
char *s

View File

@@ -33,6 +33,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#undef __assert
void __assert (const char *file, int line, const char *msg);
@@ -68,7 +69,7 @@ extern BSP_polling_getchar_function_type BSP_poll_char;
/*-------------------------------------------------------------------------+
| External Prototypes
+--------------------------------------------------------------------------*/
extern void _IBMPC_keyboard_isr(rtems_vector_number);
extern void _IBMPC_keyboard_isr(void);
extern rtems_boolean _IBMPC_scankey(char *); /* defined in 'inch.c' */
extern char BSP_wait_polled_input(void);
extern void _IBMPC_initVideo(void);

View File

@@ -330,8 +330,8 @@ ne_check_status (struct ne_softc *sc)
/* Handle an NE2000 interrupt. */
static rtems_isr
ne_interrupt_handler (rtems_vector_number v)
static void
ne_interrupt_handler (void)
{
struct ne_softc *sc;

View File

@@ -137,6 +137,8 @@ void bsp_pretasking_hook(void)
+--------------------------------------------------------------------------*/
void bsp_start_default( void )
{
void Calibrate_loop_1ms(void);
/*
* Calibrate variable for 1ms-loop (see timer.c)
*/

View File

@@ -126,8 +126,8 @@ static struct wd_softc wd_softc[NWDDRIVER];
/*
* WD interrupt handler
*/
static rtems_isr
wd8003Enet_interrupt_handler (rtems_vector_number v)
static void
wd8003Enet_interrupt_handler (void)
{
unsigned int tport;
unsigned char status, status2;

View File

@@ -58,7 +58,7 @@ typedef enum {
BSP_RT_TIMER1 = 8,
BSP_RT_TIMER3 = 10
}rtems_irq_symbolic_name;
} rtems_irq_symbolic_name;
@@ -111,7 +111,7 @@ typedef struct __rtems_irq_connect_data__ {
* if someone manipulates the i8259s interrupt mask without care...
*/
rtems_irq_is_enabled isOn;
}rtems_irq_connect_data;
} rtems_irq_connect_data;
typedef struct {
/*

View File

@@ -18,6 +18,10 @@
#include <bsp.h>
#ifdef USE_INIT_FINI
#include <stdlib.h> /* for atexit() */
#endif
extern void bsp_start( void );
extern void bsp_cleanup( void );

View File

@@ -16,7 +16,7 @@
#include <stdio.h>
static ctermid_name = "/dev/console";
static char *ctermid_name = "/dev/console";
char *ctermid(
char *s

View File

@@ -98,7 +98,7 @@ int init_paging() {
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
/* Reset Tables */
bzero( Tables, nbTables*sizeof(page_table) );
memset( Tables, 0, nbTables*sizeof(page_table) );
pageDirectory = (page_directory *) Tables;
pageTable = (page_table *)((int)Tables + PG_SIZE);
@@ -243,7 +243,7 @@ int _CPU_map_phys_address
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
/* Reset Table */
bzero( Tables, sizeof(page_table) );
memset( Tables, 0, sizeof(page_table) );
pageDirectory->pageDirEntry[directoryEntry].bits.page_frame_address =
(unsigned int)Tables >> 12;
pageDirectory->pageDirEntry[directoryEntry].bits.available = 0;

View File

@@ -173,7 +173,7 @@ struct MD {
#define bus_to_phys(address) ((unsigned int)(address) - PREP_PCI_DRAM_OFFSET)
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PPC_CACHE_ALIGNMENT
#else
#define phys_to_bus(address) address
#define phys_to_bus(address) (unsigned int) address
#define bus_to_phys(address) address
#define delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE

View File

@@ -12,6 +12,7 @@
*/
/* for strcasecmp in linux and solaris */
#undef __STRICT_ANSI__
#include <string.h>
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__

View File

@@ -16,7 +16,7 @@
#include <stdio.h>
static ctermid_name = "/dev/console";
static char *ctermid_name = "/dev/console";
char *ctermid(
char *s

View File

@@ -12,6 +12,7 @@
*/
/* for strcasecmp in linux and solaris */
#undef __STRICT_ANSI__
#include <string.h>
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__