2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>

* shared/comm/i386-stub-glue.c, shared/comm/uart.c, shared/irq/irq.c,
	shared/pci/pcibios.c: Fixed warnings.
This commit is contained in:
Joel Sherrill
2009-05-06 16:36:19 +00:00
parent debbc9ecc8
commit f9abe504d3
5 changed files with 15 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/comm/i386-stub-glue.c, shared/comm/uart.c, shared/irq/irq.c,
shared/pci/pcibios.c: Fixed warnings.
2009-03-12 Joel Sherrill <joel.sherrill@OARcorp.com> 2009-03-12 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1385/cpukit PR 1385/cpukit

View File

@@ -134,9 +134,6 @@ int getDebugChar(void)
return val; return val;
} }
static void nop(void){}
static int isOn(void) {return 1;}
void exceptionHandler(int vector, void (*handler)(void)) void exceptionHandler(int vector, void (*handler)(void))
{ {
rtems_raw_irq_connect_data excep_raw_irq_data; rtems_raw_irq_connect_data excep_raw_irq_data;
@@ -155,9 +152,9 @@ void exceptionHandler(int vector, void (*handler)(void))
rtems_fatal_error_occurred(1); rtems_fatal_error_occurred(1);
} }
excep_raw_irq_data.on = nop; excep_raw_irq_data.on = NULL;
excep_raw_irq_data.off = nop; excep_raw_irq_data.off = NULL;
excep_raw_irq_data.isOn = isOn; excep_raw_irq_data.isOn = NULL;
excep_raw_irq_data.hdl = handler; excep_raw_irq_data.hdl = handler;
if (!i386_set_idt_entry (&excep_raw_irq_data)) { if (!i386_set_idt_entry (&excep_raw_irq_data)) {

View File

@@ -736,7 +736,7 @@ BSP_uart_termios_isr_com1(void)
} }
void void
BSP_uart_termios_isr_com2() BSP_uart_termios_isr_com2(void)
{ {
unsigned char buf[40]; unsigned char buf[40];
unsigned char val; unsigned char val;

View File

@@ -11,9 +11,12 @@
* $Id$ * $Id$
*/ */
/* so we can see _API_extensions_Run_postswitch */
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ 1
#include <bsp.h> #include <bsp.h>
#include <bsp/irq.h> #include <bsp/irq.h>
#include <rtems/score/thread.h> #include <stdlib.h>
#include <rtems/score/apiext.h> #include <rtems/score/apiext.h>
/* /*
@@ -162,7 +165,7 @@ int BSP_irq_ack_at_i8259s (const rtems_irq_number irqLine)
* is already set and that the tables it contains are still valid * is already set and that the tables it contains are still valid
* and accessible. * and accessible.
*/ */
static void compute_i8259_masks_from_prio () static void compute_i8259_masks_from_prio (void)
{ {
unsigned int i; unsigned int i;
unsigned int j; unsigned int j;

View File

@@ -227,7 +227,7 @@ pcib_find_by_class(int classCode, int idx, int *sig)
static uint8_t ucBusCount = 0xff; static uint8_t ucBusCount = 0xff;
unsigned char unsigned char
pci_bus_count() pci_bus_count(void)
{ {
if ( ucBusCount == 0xff ) { if ( ucBusCount == 0xff ) {
unsigned char bus; unsigned char bus;