diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:42:37 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:42:37 +0000 |
commit | 162ffb4885f31f8db0bab8981d180c6bdd990691 (patch) | |
tree | 2fd3419600216dadb3920b429ae295bfc4b4af46 /c/src/lib/libbsp/m68k/mvme136/shmsupp | |
parent | 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-162ffb4885f31f8db0bab8981d180c6bdd990691.tar.bz2 |
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, include/bsp.h, shmsupp/getcfg.c, shmsupp/lock.c,
shmsupp/mpisr.c, startup/bspstart.c, timer/timer.c: Convert to using
c99 fixed size types.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme136/shmsupp')
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c | 12 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c index 81d43d32bb..6d5885a974 100644 --- a/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c +++ b/c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c @@ -40,22 +40,22 @@ shm_config_table BSP_shm_cfgtbl; -rtems_unsigned32 *BSP_int_address() +uint32_t *BSP_int_address() { - rtems_unsigned32 id, offset; + uint32_t id, offset; - id = (rtems_unsigned32) *(rtems_unsigned8 *)0xfffb0061; + id = (uint32_t) *(uint8_t*)0xfffb0061; offset = ((id & 0x1f) << 5) | ((id & 0xe0) << 8); offset |= 0xffff000b; - return( (rtems_unsigned32 * ) offset ); + return( (uint32_t * ) offset ); } void Shm_Get_configuration( - rtems_unsigned32 localnode, + uint32_t localnode, shm_config_table **shmcfg ) { - BSP_shm_cfgtbl.base = (rtems_unsigned32 *)0x20000000; + BSP_shm_cfgtbl.base = (uint32_t*)0x20000000; BSP_shm_cfgtbl.length = 1 * MEGABYTE; BSP_shm_cfgtbl.format = SHM_BIG; diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c index aa593dc6ff..8f820302ea 100644 --- a/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c +++ b/c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c @@ -44,8 +44,8 @@ void Shm_Lock( Shm_Locked_queue_Control *lq_cb ) { - rtems_unsigned32 isr_level; - rtems_unsigned32 *lockptr = (rtems_unsigned32 *)&lq_cb->lock; + uint32_t isr_level; + uint32_t *lockptr = (uint32_t*)&lq_cb->lock; rtems_interrupt_disable( isr_level ); Shm_isrstat = isr_level; @@ -65,7 +65,7 @@ void Shm_Unlock( Shm_Locked_queue_Control *lq_cb ) { - rtems_unsigned32 isr_level; + uint32_t isr_level; lq_cb->lock = SHM_UNLOCK_VALUE; isr_level = Shm_isrstat; diff --git a/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c b/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c index da8d5a795a..eeb8f0c53c 100644 --- a/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c +++ b/c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c @@ -21,7 +21,7 @@ rtems_isr Shm_isr_mvme136() { Shm_Interrupt_count += 1; rtems_multiprocessing_announce(); - (*(volatile rtems_unsigned8 *)0xfffb006b) = 0; /* clear MPCSR intr */ + (*(volatile uint8_t*)0xfffb006b) = 0; /* clear MPCSR intr */ } /* void _Shm_setvec( ) |