Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2008-08-20 04:28:02 +00:00
parent 5e8285916c
commit f85062304a
4 changed files with 10 additions and 10 deletions

View File

@@ -257,7 +257,7 @@ int clockIsOn(const rtems_irq_connect_data* irq)
}
int BSP_get_clock_irq_level()
int BSP_get_clock_irq_level(void)
{
/*
* Caution : if you change this, you must change the

View File

@@ -77,11 +77,11 @@
#include "../include/mpc5200.h"
extern unsigned int external_exception_vector_prolog_code_size;
extern void external_exception_vector_prolog_code();
extern void external_exception_vector_prolog_code(void);
extern unsigned int decrementer_exception_vector_prolog_code_size;
extern void decrementer_exception_vector_prolog_code();
extern void decrementer_exception_vector_prolog_code(void);
extern unsigned int system_management_exception_vector_prolog_code_size;
extern void system_management_exception_vector_prolog_code();
extern void system_management_exception_vector_prolog_code(void);
extern void BSP_panic(char *s);
extern void _BSP_Fatal_error(unsigned int v);
@@ -92,15 +92,15 @@ volatile unsigned int ppc_cached_irq_mask;
/*
* default on/off function
*/
static void nop_func(){}
static void nop_func(void){}
/*
* default isOn function
*/
static int not_connected() {return 0;}
static int not_connected(void) {return 0;}
/*
* default possible isOn function
*/
static int connected() {return 1;}
static int connected(void) {return 1;}
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
static rtems_irq_global_settings initial_config;

View File

@@ -81,7 +81,7 @@
* default raw exception handlers
*/
extern void default_exception_vector_code_prolog();
extern void default_exception_vector_code_prolog(void);
extern int default_exception_vector_code_prolog_size;
/* codemove is like memmove, but it also gets the cache line size
@@ -92,7 +92,7 @@ extern int default_exception_vector_code_prolog_size;
* next mutiple of 4.
*/
extern void * codemove(void *, const void *, unsigned int, unsigned long);
extern void initialize_exceptions();
extern void initialize_exceptions(void);
typedef struct {
unsigned EXC_SRR0;

View File

@@ -158,7 +158,7 @@ int except_always_enabled(const rtems_raw_except_connect_data* ptr)
return 1;
}
void initialize_exceptions()
void initialize_exceptions(void)
{
int i;