Changeset 3f71ac1 in rtems
- Timestamp:
- 03/31/04 03:47:48 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- bad8092c
- Parents:
- 2a832d8
- Location:
- c/src/lib/libbsp/powerpc/psim
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/psim/ChangeLog
r2a832d8 r3f71ac1 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * include/bsp.h, shmsupp/getcfg.c, startup/bspstart.c, 4 timer/timer.c: Convert to using c99 fixed size types. 5 1 6 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 7 -
c/src/lib/libbsp/powerpc/psim/include/bsp.h
r2a832d8 r3f71ac1 82 82 #define Cause_tm27_intr() \ 83 83 do { \ 84 u nsigned32_clicks = 1; \84 uint32_t _clicks = 1; \ 85 85 asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 86 86 } while (0) … … 89 89 #define Clear_tm27_intr() \ 90 90 do { \ 91 u nsigned32_clicks = 0xffffffff; \91 uint32_t _clicks = 0xffffffff; \ 92 92 asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 93 93 } while (0) … … 95 95 #define Lower_tm27_intr() \ 96 96 do { \ 97 u nsigned32_msr = 0; \97 uint32_t _msr = 0; \ 98 98 _ISR_Set_level( 0 ); \ 99 99 asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \ … … 155 155 extern rtems_cpu_table Cpu_table; /* owned by BSP */ 156 156 157 extern rtems_unsigned32bsp_isr_level;157 extern uint32_t bsp_isr_level; 158 158 159 159 #endif /* ASM */ -
c/src/lib/libbsp/powerpc/psim/shmsupp/getcfg.c
r2a832d8 r3f71ac1 32 32 33 33 void Shm_Get_configuration( 34 rtems_unsigned32localnode,34 uint32_t localnode, 35 35 shm_config_table **shmcfg 36 36 ) 37 37 { 38 BSP_shm_cfgtbl.base = ( rtems_unsigned32*)0xc0000000;38 BSP_shm_cfgtbl.base = (uint32_t*)0xc0000000; 39 39 BSP_shm_cfgtbl.length = 64 * 1024; 40 40 BSP_shm_cfgtbl.format = SHM_BIG; -
c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
r2a832d8 r3f71ac1 32 32 33 33 rtems_cpu_table Cpu_table; 34 rtems_unsigned32bsp_isr_level;34 uint32_t bsp_isr_level; 35 35 36 36 /* … … 39 39 40 40 #if 0 41 extern rtems_unsigned32rdb_start;41 extern uint32_t rdb_start; 42 42 #endif 43 43 … … 47 47 48 48 void bsp_postdriver_hook(void); 49 void bsp_libc_init( void *, u nsigned32, int );49 void bsp_libc_init( void *, uint32_t, int ); 50 50 51 51 /* … … 59 59 { 60 60 extern int end; 61 rtems_unsigned32heap_start;62 rtems_unsigned32heap_size;61 uint32_t heap_start; 62 uint32_t heap_size; 63 63 64 heap_start = ( rtems_unsigned32) &end;64 heap_start = (uint32_t) &end; 65 65 if (heap_start & (CPU_ALIGNMENT-1)) 66 66 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); -
c/src/lib/libbsp/powerpc/psim/timer/timer.c
r2a832d8 r3f71ac1 13 13 #include <bsp.h> 14 14 15 rtems_unsigned64Timer_driver_Start_time;15 uint64_t Timer_driver_Start_time; 16 16 17 17 rtems_boolean Timer_driver_Find_average_overhead; … … 33 33 int Read_timer() 34 34 { 35 rtems_unsigned64clicks;36 rtems_unsigned64total64;37 rtems_unsigned32total;35 uint64_t clicks; 36 uint64_t total64; 37 uint32_t total; 38 38 39 39 /* approximately CLOCK_SPEED clicks per microsecond */ … … 45 45 total64 = clicks - Timer_driver_Start_time; 46 46 47 assert( total64 <= 0xffffffff ); /* fits into a u nsigned32*/47 assert( total64 <= 0xffffffff ); /* fits into a uint32_t */ 48 48 49 total = ( rtems_unsigned32) total64;49 total = (uint32_t) total64; 50 50 51 51 if ( Timer_driver_Find_average_overhead == 1 )
Note: See TracChangeset
for help on using the changeset viewer.