forked from Imagelibrary/rtems
libbsp/i386/shared: Fix warnings
This commit is contained in:
@@ -99,6 +99,15 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prototypes we need to avoid warnings but not going into public space.
|
||||||
|
*/
|
||||||
|
void breakpoint (void);
|
||||||
|
void set_debug_traps(void);
|
||||||
|
void set_mem_err(void);
|
||||||
|
void _returnFromException(void);
|
||||||
|
void exceptionHandler (int, void (*handler) (void));
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
*
|
*
|
||||||
* external low-level support routines
|
* external low-level support routines
|
||||||
@@ -106,8 +115,6 @@
|
|||||||
extern int putDebugChar (int ch); /* write a single character */
|
extern int putDebugChar (int ch); /* write a single character */
|
||||||
extern int getDebugChar (void); /* read and return a single char */
|
extern int getDebugChar (void); /* read and return a single char */
|
||||||
|
|
||||||
/* assign an exception handler */
|
|
||||||
extern void exceptionHandler (int, void (*handler) (void));
|
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers */
|
/* BUFMAX defines the maximum number of characters in inbound/outbound buffers */
|
||||||
@@ -564,7 +571,7 @@ char remcomInBuffer[BUFMAX];
|
|||||||
char remcomOutBuffer[BUFMAX];
|
char remcomOutBuffer[BUFMAX];
|
||||||
static short error;
|
static short error;
|
||||||
|
|
||||||
void
|
static void
|
||||||
debug_error (
|
debug_error (
|
||||||
char *format,
|
char *format,
|
||||||
char *parm
|
char *parm
|
||||||
@@ -753,7 +760,6 @@ handle_exception (int exceptionVector)
|
|||||||
int sigval;
|
int sigval;
|
||||||
int addr, length, reg;
|
int addr, length, reg;
|
||||||
char *ptr;
|
char *ptr;
|
||||||
int newPC;
|
|
||||||
|
|
||||||
gdb_i386vector = exceptionVector;
|
gdb_i386vector = exceptionVector;
|
||||||
|
|
||||||
@@ -898,8 +904,6 @@ handle_exception (int exceptionVector)
|
|||||||
if (hexToInt (&ptr, &addr))
|
if (hexToInt (&ptr, &addr))
|
||||||
registers[PC] = addr;
|
registers[PC] = addr;
|
||||||
|
|
||||||
newPC = registers[PC];
|
|
||||||
|
|
||||||
/* clear the trace bit */
|
/* clear the trace bit */
|
||||||
registers[PS] &= 0xfffffeff;
|
registers[PS] &= 0xfffffeff;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
/* irq.c
|
/*
|
||||||
*
|
|
||||||
* This file contains the implementation of the function described in irq.h
|
* This file contains the implementation of the function described in irq.h
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* Copyright (c) 2009 embedded brains GmbH
|
* Copyright (c) 2009 embedded brains GmbH
|
||||||
* Copyright (C) 1998 valette@crf.canon.fr
|
* Copyright (C) 1998 valette@crf.canon.fr
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
/* irq.c
|
/*
|
||||||
*
|
|
||||||
* This file contains the implementation of the function described in irq.h
|
* This file contains the implementation of the function described in irq.h
|
||||||
*
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
* Copyright (C) 1998 valette@crf.canon.fr
|
* Copyright (C) 1998 valette@crf.canon.fr
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-2011.
|
* COPYRIGHT (c) 1989-2011.
|
||||||
@@ -19,6 +20,8 @@
|
|||||||
#include <rtems/score/cpu.h>
|
#include <rtems/score/cpu.h>
|
||||||
#include <rtems/score/percpu.h>
|
#include <rtems/score/percpu.h>
|
||||||
|
|
||||||
|
#include <bsp.h> /* to establish dependency on prototype */
|
||||||
|
|
||||||
#ifndef CPU_STACK_ALIGNMENT
|
#ifndef CPU_STACK_ALIGNMENT
|
||||||
#error "Missing header? CPU_STACK_ALIGNMENT is not defined here"
|
#error "Missing header? CPU_STACK_ALIGNMENT is not defined here"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -264,24 +264,6 @@ pci_bus_count(void)
|
|||||||
return ucBusCount;
|
return ucBusCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
|
|
||||||
int instance, int *pbus, int *pdev, int *pfun )
|
|
||||||
{
|
|
||||||
int sig, rval;
|
|
||||||
|
|
||||||
rval = pcib_find_by_devid(vendorid, deviceid, instance, &sig);
|
|
||||||
|
|
||||||
if ( PCIB_ERR_SUCCESS == rval ) {
|
|
||||||
*pbus = PCIB_DEVSIG_BUS(sig);
|
|
||||||
*pdev = PCIB_DEVSIG_DEV(sig);
|
|
||||||
*pfun = PCIB_DEVSIG_FUNC(sig);
|
|
||||||
}
|
|
||||||
|
|
||||||
return rval;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generate Special Cycle
|
* Generate Special Cycle
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user