forked from Imagelibrary/rtems
Removed warnings.
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static ctermid_name = "/dev/console";
|
static char *ctermid_name = "/dev/console";
|
||||||
|
|
||||||
char *ctermid(
|
char *ctermid(
|
||||||
char *s
|
char *s
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <unistd.h>
|
||||||
#undef __assert
|
#undef __assert
|
||||||
void __assert (const char *file, int line, const char *msg);
|
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
|
| 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 rtems_boolean _IBMPC_scankey(char *); /* defined in 'inch.c' */
|
||||||
extern char BSP_wait_polled_input(void);
|
extern char BSP_wait_polled_input(void);
|
||||||
extern void _IBMPC_initVideo(void);
|
extern void _IBMPC_initVideo(void);
|
||||||
|
|||||||
@@ -330,8 +330,8 @@ ne_check_status (struct ne_softc *sc)
|
|||||||
|
|
||||||
/* Handle an NE2000 interrupt. */
|
/* Handle an NE2000 interrupt. */
|
||||||
|
|
||||||
static rtems_isr
|
static void
|
||||||
ne_interrupt_handler (rtems_vector_number v)
|
ne_interrupt_handler (void)
|
||||||
{
|
{
|
||||||
struct ne_softc *sc;
|
struct ne_softc *sc;
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ void bsp_pretasking_hook(void)
|
|||||||
+--------------------------------------------------------------------------*/
|
+--------------------------------------------------------------------------*/
|
||||||
void bsp_start_default( void )
|
void bsp_start_default( void )
|
||||||
{
|
{
|
||||||
|
void Calibrate_loop_1ms(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calibrate variable for 1ms-loop (see timer.c)
|
* Calibrate variable for 1ms-loop (see timer.c)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -126,8 +126,8 @@ static struct wd_softc wd_softc[NWDDRIVER];
|
|||||||
/*
|
/*
|
||||||
* WD interrupt handler
|
* WD interrupt handler
|
||||||
*/
|
*/
|
||||||
static rtems_isr
|
static void
|
||||||
wd8003Enet_interrupt_handler (rtems_vector_number v)
|
wd8003Enet_interrupt_handler (void)
|
||||||
{
|
{
|
||||||
unsigned int tport;
|
unsigned int tport;
|
||||||
unsigned char status, status2;
|
unsigned char status, status2;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ typedef enum {
|
|||||||
BSP_RT_TIMER1 = 8,
|
BSP_RT_TIMER1 = 8,
|
||||||
|
|
||||||
BSP_RT_TIMER3 = 10
|
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...
|
* if someone manipulates the i8259s interrupt mask without care...
|
||||||
*/
|
*/
|
||||||
rtems_irq_is_enabled isOn;
|
rtems_irq_is_enabled isOn;
|
||||||
}rtems_irq_connect_data;
|
} rtems_irq_connect_data;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -18,6 +18,10 @@
|
|||||||
|
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
|
#ifdef USE_INIT_FINI
|
||||||
|
#include <stdlib.h> /* for atexit() */
|
||||||
|
#endif
|
||||||
|
|
||||||
extern void bsp_start( void );
|
extern void bsp_start( void );
|
||||||
extern void bsp_cleanup( void );
|
extern void bsp_cleanup( void );
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static ctermid_name = "/dev/console";
|
static char *ctermid_name = "/dev/console";
|
||||||
|
|
||||||
char *ctermid(
|
char *ctermid(
|
||||||
char *s
|
char *s
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ int init_paging() {
|
|||||||
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
|
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
|
||||||
|
|
||||||
/* Reset Tables */
|
/* Reset Tables */
|
||||||
bzero( Tables, nbTables*sizeof(page_table) );
|
memset( Tables, 0, nbTables*sizeof(page_table) );
|
||||||
pageDirectory = (page_directory *) Tables;
|
pageDirectory = (page_directory *) Tables;
|
||||||
pageTable = (page_table *)((int)Tables + PG_SIZE);
|
pageTable = (page_table *)((int)Tables + PG_SIZE);
|
||||||
|
|
||||||
@@ -243,7 +243,7 @@ int _CPU_map_phys_address
|
|||||||
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
|
Tables += (PG_SIZE - (int)Tables) & 0xFFF;
|
||||||
|
|
||||||
/* Reset Table */
|
/* Reset Table */
|
||||||
bzero( Tables, sizeof(page_table) );
|
memset( Tables, 0, sizeof(page_table) );
|
||||||
pageDirectory->pageDirEntry[directoryEntry].bits.page_frame_address =
|
pageDirectory->pageDirEntry[directoryEntry].bits.page_frame_address =
|
||||||
(unsigned int)Tables >> 12;
|
(unsigned int)Tables >> 12;
|
||||||
pageDirectory->pageDirEntry[directoryEntry].bits.available = 0;
|
pageDirectory->pageDirEntry[directoryEntry].bits.available = 0;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ struct MD {
|
|||||||
#define bus_to_phys(address) ((unsigned int)(address) - PREP_PCI_DRAM_OFFSET)
|
#define bus_to_phys(address) ((unsigned int)(address) - PREP_PCI_DRAM_OFFSET)
|
||||||
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PPC_CACHE_ALIGNMENT
|
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PPC_CACHE_ALIGNMENT
|
||||||
#else
|
#else
|
||||||
#define phys_to_bus(address) address
|
#define phys_to_bus(address) (unsigned int) address
|
||||||
#define bus_to_phys(address) address
|
#define bus_to_phys(address) address
|
||||||
#define delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
|
#define delay_in_bus_cycles(cycle) Wait_X_ms( cycle/100 )
|
||||||
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
|
#define CPU_CACHE_ALIGNMENT_FOR_BUFFER PG_SIZE
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* for strcasecmp in linux and solaris */
|
/* for strcasecmp in linux and solaris */
|
||||||
|
#undef __STRICT_ANSI__
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static ctermid_name = "/dev/console";
|
static char *ctermid_name = "/dev/console";
|
||||||
|
|
||||||
char *ctermid(
|
char *ctermid(
|
||||||
char *s
|
char *s
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* for strcasecmp in linux and solaris */
|
/* for strcasecmp in linux and solaris */
|
||||||
|
#undef __STRICT_ANSI__
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||||
|
|||||||
Reference in New Issue
Block a user