diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 02:02:23 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 02:02:23 +0000 |
commit | 35f9701021dce847972c2ebe0d606532db891556 (patch) | |
tree | b71452dbad55c6e8cc378e67e0f6008341be2a05 /c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c | |
parent | 2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-35f9701021dce847972c2ebe0d606532db891556.tar.bz2 |
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, clock/clock.h, mongoosev/duart/mg5uart.c,
mongoosev/duart/mg5uart.h, mongoosev/duart/mg5uart_reg.c,
mongoosev/include/mongoose-v.h, mongoosev/vectorisrs/vectorisrs.c,
shared/interrupts/vectorexceptions.c, timer/timer.c,
tx39/include/tx3904.h: Convert to using c99 fixed size types.
Diffstat (limited to 'c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c')
-rw-r--r-- | c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c b/c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c index 0ce7419963..7a35c8304e 100644 --- a/c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c +++ b/c/src/lib/libcpu/mips/mongoosev/vectorisrs/vectorisrs.c @@ -41,11 +41,11 @@ int mips_default_isr( int vector ) /* userspace routine to assert either software interrupt */ -int assertSoftwareInterrupt( unsigned32 n ) +int assertSoftwareInterrupt( uint32_t n ) { if( n<2 ) { - unsigned32 c; + uint32_t c; mips_get_cause(c); c = ((n+1) << CAUSE_IPSHIFT); @@ -76,8 +76,8 @@ int assertSoftwareInterrupt( unsigned32 n ) // #if 0 -#define SET_ISR_FLAG( offset ) *((unsigned32 *)(0x8001e000+offset)) = 1; -#define CLR_ISR_FLAG( offset ) *((unsigned32 *)(0x8001e000+offset)) = 0; +#define SET_ISR_FLAG( offset ) *((uint32_t *)(0x8001e000+offset)) = 1; +#define CLR_ISR_FLAG( offset ) *((uint32_t *)(0x8001e000+offset)) = 0; #else #define SET_ISR_FLAG( offset ) #define CLR_ISR_FLAG( offset ) @@ -88,10 +88,10 @@ int assertSoftwareInterrupt( unsigned32 n ) -static volatile unsigned32 _ivcause, _ivsr; +static volatile uint32_t _ivcause, _ivsr; -static unsigned32 READ_CAUSE(void) +static uint32_t READ_CAUSE(void) { mips_get_cause( _ivcause ); _ivcause &= SR_IMASK; // mask off everything other than the interrupt bits @@ -116,7 +116,7 @@ static unsigned32 READ_CAUSE(void) // void mips_vector_isr_handlers( CPU_Interrupt_frame *frame ) { - unsigned32 cshifted; + uint32_t cshifted; /* mips_get_sr( sr ); */ _ivsr = frame->c0_sr; @@ -190,9 +190,9 @@ void mips_vector_isr_handlers( CPU_Interrupt_frame *frame ) if ( cshifted & 0x80 ) /* IP[5] ==> INT5, peripheral interrupt */ { - unsigned32 bit; - unsigned32 pf_icr, pf_mask, pf_reset = 0; - unsigned32 i, m; + uint32_t bit; + uint32_t pf_icr, pf_mask, pf_reset = 0; + uint32_t i, m; pf_icr = MONGOOSEV_READ( MONGOOSEV_PERIPHERAL_FUNCTION_INTERRUPT_CAUSE_REGISTER ); |