mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
Removed numerous warnings.
This commit is contained in:
@@ -162,7 +162,9 @@ void initialize_universe()
|
||||
{
|
||||
rtems_unsigned32 jumper_selection;
|
||||
rtems_unsigned32 pci_id;
|
||||
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
|
||||
volatile rtems_unsigned32 universe_temp_value;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Read the VME jumper location to determine the VME base address
|
||||
|
||||
@@ -170,7 +170,7 @@ rtems_device_driver Clock_initialize(
|
||||
Clock_Decrementer_value = (int) &CPU_PPC_CLICKS_PER_MS *
|
||||
(BSP_Configuration.microseconds_per_tick / 1000);
|
||||
|
||||
Install_clock( Clock_isr );
|
||||
Install_clock( (rtems_isr_entry) Clock_isr );
|
||||
|
||||
/*
|
||||
* make major/minor avail to others such as shared memory driver
|
||||
|
||||
@@ -136,7 +136,7 @@ const Port_85C30_info Ports_85C30 [ NUM_Z85C30_PORTS ] = {
|
||||
&Chips_85C30[1],
|
||||
},
|
||||
|
||||
#if defined(HAS_PMC_PSC8)
|
||||
#if (HAS_PMC_PSC8)
|
||||
{
|
||||
(volatile unsigned char *) SCORE603E_85C30_CTRL_4,
|
||||
(volatile unsigned char *) SCORE603E_85C30_DATA_4,
|
||||
|
||||
@@ -83,9 +83,9 @@ void init_RTC()
|
||||
|
||||
void init_PCI()
|
||||
{
|
||||
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
|
||||
rtems_unsigned32 value;
|
||||
|
||||
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
|
||||
/*
|
||||
* NOTE: Accessing any memory location not mapped by the BAT
|
||||
* registers will cause a TLB miss exception.
|
||||
|
||||
@@ -130,7 +130,8 @@ void initialize_PMC() {
|
||||
/*
|
||||
* Bit 0 and 1 HI cause Medium Loopback to occur.
|
||||
*/
|
||||
PMC_addr = SCORE603E_PMC_SERIAL_ADDRESS( 0x100000 );
|
||||
PMC_addr = (volatile rtems_unsigned32 *)
|
||||
SCORE603E_PMC_SERIAL_ADDRESS( 0x100000 );
|
||||
data = *PMC_addr;
|
||||
/* *PMC_addr = data | 0x3; */
|
||||
*PMC_addr = data & 0xfc;
|
||||
@@ -152,7 +153,8 @@ void initialize_PMC() {
|
||||
PMC_addr = SCORE603E_PCI_DEVICE_ADDRESS( 0x14 );
|
||||
*PMC_addr = (SCORE603E_PCI_REGISTER_BASE >> 24) & 0x3f;
|
||||
|
||||
PMC_addr = SCORE603E_PMC_SERIAL_ADDRESS( 0x100000 );
|
||||
PMC_addr = (volatile rtems_unsigned32 *)
|
||||
SCORE603E_PMC_SERIAL_ADDRESS( 0x100000 );
|
||||
data = *PMC_addr;
|
||||
*PMC_addr = data & 0xfc;
|
||||
|
||||
@@ -170,6 +172,7 @@ void initialize_PMC() {
|
||||
|
||||
void SCORE603e_bsp_postdriver_hook(void)
|
||||
{
|
||||
extern void Init_EE_mask_init(void);
|
||||
|
||||
bsp_postdriver_hook();
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "chain.h"
|
||||
#include <assert.h>
|
||||
|
||||
#include <stdio.h> /* for sprintf */
|
||||
|
||||
|
||||
/*
|
||||
* Proto types for this file
|
||||
@@ -141,14 +143,16 @@ rtems_isr external_exception_ISR (
|
||||
EE_ISR_Type *node;
|
||||
rtems_unsigned16 value;
|
||||
char err_msg[100];
|
||||
#if (HAS_PMC_PSC8)
|
||||
rtems_unsigned16 PMC_irq;
|
||||
rtems_unsigned16 check_irq;
|
||||
rtems_unsigned16 status_word;
|
||||
#endif
|
||||
|
||||
index = read_and_clear_irq();
|
||||
if ( index >= NUM_LIRQ ) {
|
||||
sprintf(err_msg,"ERROR:: Invalid interrupt number (%02x)\n", index);
|
||||
DEBUG_puts( err_msg);
|
||||
sprintf( err_msg, "ERROR:: Invalid interrupt number (%02x)\n", index );
|
||||
DEBUG_puts( err_msg );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,6 @@ void ICM7170_SetTOD(
|
||||
rtems_time_of_day *rtc_tod
|
||||
)
|
||||
{
|
||||
int ticks;
|
||||
int year;
|
||||
|
||||
year = rtc_tod->year;
|
||||
|
||||
Reference in New Issue
Block a user