2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>

* clock/ckinit.c, console/console.c, console/debugputs.c,
	include/bsp.h, include/leon.h, startup/setvec.c, startup/spurious.c,
	timer/timer.c: Convert to using c99 fixed size types.
This commit is contained in:
Ralf Corsepius
2004-03-31 05:18:03 +00:00
parent 1be1e91356
commit bd978031bf
9 changed files with 30 additions and 24 deletions

View File

@@ -1,3 +1,9 @@
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, console/console.c, console/debugputs.c,
include/bsp.h, include/leon.h, startup/setvec.c, startup/spurious.c,
timer/timer.c: Convert to using c99 fixed size types.
2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect changes to bsp.am. * Makefile.am: Reflect changes to bsp.am.

View File

@@ -38,7 +38,7 @@
* Clock ticks since initialization * Clock ticks since initialization
*/ */
volatile rtems_unsigned32 Clock_driver_ticks; volatile uint32_t Clock_driver_ticks;
/* /*
* This is the value programmed into the count down timer. It * This is the value programmed into the count down timer. It
@@ -47,7 +47,7 @@ volatile rtems_unsigned32 Clock_driver_ticks;
* the simulator. * the simulator.
*/ */
extern rtems_unsigned32 CPU_SPARC_CLICKS_PER_TICK; extern uint32_t CPU_SPARC_CLICKS_PER_TICK;
rtems_isr_entry Old_ticker; rtems_isr_entry Old_ticker;
@@ -222,7 +222,7 @@ rtems_device_driver Clock_control(
void *pargp void *pargp
) )
{ {
rtems_unsigned32 isrlevel; uint32_t isrlevel;
rtems_libio_ioctl_args_t *args = pargp; rtems_libio_ioctl_args_t *args = pargp;
if (args == 0) if (args == 0)

View File

@@ -107,7 +107,7 @@ rtems_isr console_isr_a(
if ( LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE ) { if ( LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE ) {
if ( !Ring_buffer_Is_empty( &TX_Buffer[ 0 ] ) ) { if ( !Ring_buffer_Is_empty( &TX_Buffer[ 0 ] ) ) {
Ring_buffer_Remove_character( &TX_Buffer[ 0 ], ch ); Ring_buffer_Remove_character( &TX_Buffer[ 0 ], ch );
LEON_REG.UART_Channel_1 = (unsigned32) ch; LEON_REG.UART_Channel_1 = (uint32_t) ch;
} else } else
Is_TX_active[ 0 ] = FALSE; Is_TX_active[ 0 ] = FALSE;
} }
@@ -147,7 +147,7 @@ rtems_isr console_isr_b(
if ( LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE ) { if ( LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE ) {
if ( !Ring_buffer_Is_empty( &TX_Buffer[ 1 ] ) ) { if ( !Ring_buffer_Is_empty( &TX_Buffer[ 1 ] ) ) {
Ring_buffer_Remove_character( &TX_Buffer[ 1 ], ch ); Ring_buffer_Remove_character( &TX_Buffer[ 1 ], ch );
LEON_REG.UART_Channel_2 = (unsigned32) ch; LEON_REG.UART_Channel_2 = (uint32_t) ch;
} else } else
Is_TX_active[ 1 ] = FALSE; Is_TX_active[ 1 ] = FALSE;
} }
@@ -170,8 +170,8 @@ rtems_isr console_isr_b(
void console_exit() void console_exit()
{ {
rtems_unsigned32 port; uint32_t port;
rtems_unsigned32 ch; uint32_t ch;
/* /*
* Although the interrupts for the UART are unmasked, the PIL is set to * Although the interrupts for the UART are unmasked, the PIL is set to
@@ -224,7 +224,7 @@ void console_exit()
*/ */
#ifdef RDB_BREAK_IN #ifdef RDB_BREAK_IN
extern unsigned32 trap_table[]; extern uint32_t trap_table[];
#endif #endif
void console_initialize_interrupts( void ) void console_initialize_interrupts( void )

View File

@@ -96,7 +96,7 @@ void DEBUG_puts(
) )
{ {
char *s; char *s;
unsigned32 old_level; uint32_t old_level;
LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level ); LEON_Disable_interrupt( LEON_INTERRUPT_UART_1_RX_TX, old_level );
LEON_REG.UART_Control_1 = LEON_REG_UART_CTRL_TE; LEON_REG.UART_Control_1 = LEON_REG_UART_CTRL_TE;

View File

@@ -131,7 +131,7 @@ extern int rtems_leon_open_eth_driver_attach (struct rtems_bsdnet_ifconfig *conf
* This is very dependent on the clock speed of the target. * This is very dependent on the clock speed of the target.
*/ */
extern void Clock_delay(rtems_unsigned32 microseconds); extern void Clock_delay(uint32_t microseconds);
#define delay( microseconds ) Clock_delay(microseconds) #define delay( microseconds ) Clock_delay(microseconds)

View File

@@ -298,7 +298,7 @@ extern LEON_Register_Map LEON_REG;
#define LEON_Mask_interrupt( _source ) \ #define LEON_Mask_interrupt( _source ) \
do { \ do { \
unsigned32 _level; \ uint32_t _level; \
\ \
_level = sparc_disable_interrupts(); \ _level = sparc_disable_interrupts(); \
LEON_REG.Interrupt_Mask &= ~(1 << (_source)); \ LEON_REG.Interrupt_Mask &= ~(1 << (_source)); \
@@ -307,7 +307,7 @@ extern LEON_Register_Map LEON_REG;
#define LEON_Unmask_interrupt( _source ) \ #define LEON_Unmask_interrupt( _source ) \
do { \ do { \
unsigned32 _level; \ uint32_t _level; \
\ \
_level = sparc_disable_interrupts(); \ _level = sparc_disable_interrupts(); \
LEON_REG.Interrupt_Mask |= (1 << (_source)); \ LEON_REG.Interrupt_Mask |= (1 << (_source)); \
@@ -316,8 +316,8 @@ extern LEON_Register_Map LEON_REG;
#define LEON_Disable_interrupt( _source, _previous ) \ #define LEON_Disable_interrupt( _source, _previous ) \
do { \ do { \
unsigned32 _level; \ uint32_t _level; \
unsigned32 _mask = 1 << (_source); \ uint32_t _mask = 1 << (_source); \
\ \
_level = sparc_disable_interrupts(); \ _level = sparc_disable_interrupts(); \
(_previous) = LEON_REG.Interrupt_Mask; \ (_previous) = LEON_REG.Interrupt_Mask; \
@@ -328,8 +328,8 @@ extern LEON_Register_Map LEON_REG;
#define LEON_Restore_interrupt( _source, _previous ) \ #define LEON_Restore_interrupt( _source, _previous ) \
do { \ do { \
unsigned32 _level; \ uint32_t _level; \
unsigned32 _mask = 1 << (_source); \ uint32_t _mask = 1 << (_source); \
\ \
_level = sparc_disable_interrupts(); \ _level = sparc_disable_interrupts(); \
LEON_REG.Interrupt_Mask = \ LEON_REG.Interrupt_Mask = \

View File

@@ -39,8 +39,8 @@ rtems_isr_entry set_vector( /* returns old vector */
) )
{ {
rtems_isr_entry previous_isr; rtems_isr_entry previous_isr;
unsigned32 real_trap; uint32_t real_trap;
unsigned32 source; uint32_t source;
if ( type ) if ( type )
rtems_interrupt_catch( handler, vector, &previous_isr ); rtems_interrupt_catch( handler, vector, &previous_isr );

View File

@@ -23,7 +23,7 @@ static const char digits[16] = "0123456789abcdef";
/* Simple integer-to-string conversion */ /* Simple integer-to-string conversion */
void itos(unsigned32 u, char *s) void itos(uint32_t u, char *s)
{ {
int i; int i;
@@ -44,7 +44,7 @@ rtems_isr bsp_spurious_handler(
) )
{ {
char line[ 80 ]; char line[ 80 ];
rtems_unsigned32 real_trap; uint32_t real_trap;
real_trap = SPARC_REAL_TRAP_NUMBER(trap); real_trap = SPARC_REAL_TRAP_NUMBER(trap);
@@ -143,9 +143,9 @@ rtems_isr bsp_spurious_handler(
void bsp_spurious_initialize() void bsp_spurious_initialize()
{ {
rtems_unsigned32 trap; uint32_t trap;
unsigned32 level; uint32_t level;
unsigned32 mask; uint32_t mask;
level = sparc_disable_interrupts(); level = sparc_disable_interrupts();
mask = LEON_REG.Interrupt_Mask; mask = LEON_REG.Interrupt_Mask;

View File

@@ -55,7 +55,7 @@ void Timer_initialize()
int Read_timer() int Read_timer()
{ {
rtems_unsigned32 total; uint32_t total;
total = LEON_REG.Timer_Counter_2; total = LEON_REG.Timer_Counter_2;