Changeset 654c115c in rtems
- Timestamp:
- 03/31/04 04:12:38 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 2a7f710f
- Parents:
- d1c60fb
- Location:
- c/src/lib/libbsp/mips/p4000
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/mips/p4000/ChangeLog
rd1c60fb r654c115c 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * times, include/bsp.h, startup/bspstart.c: Convert to using c99 4 fixed size types. 5 1 6 2004-03-03 Joel Sherrill <joel@OARcorp.com> 2 7 -
c/src/lib/libbsp/mips/p4000/include/bsp.h
rd1c60fb r654c115c 65 65 #define Lower_tm27_intr() 66 66 67 extern u nsigned32mips_get_timer( void );67 extern uint32_t mips_get_timer( void ); 68 68 69 69 #define CPU_CLOCK_RATE_MHZ (50) … … 75 75 * 76 76 * NOTE: This macro generates a warning like "integer constant out 77 * of range" which is safe to ignore. In 64 bit mode, u nsigned3277 * of range" which is safe to ignore. In 64 bit mode, uint32_t 78 78 * types are actually 64 bits long so that comparisons between 79 * u nsigned32types and pointers are valid. The warning is caused79 * uint32_t types and pointers are valid. The warning is caused 80 80 * by code in the delay macro that is necessary for 64 bit mode. 81 81 */ … … 83 83 #define rtems_bsp_delay( microseconds ) \ 84 84 { \ 85 u nsigned32_end_clock = \85 uint32_t _end_clock = \ 86 86 mips_get_timer() + microseconds * CLOCKS_PER_MICROSECOND; \ 87 87 _end_clock %= 0x100000000; /* make sure result is 32 bits */ \ -
c/src/lib/libbsp/mips/p4000/startup/bspstart.c
rd1c60fb r654c115c 46 46 47 47 void bsp_postdriver_hook(void); 48 void bsp_libc_init( void *, u nsigned32, int );48 void bsp_libc_init( void *, uint32_t, int ); 49 49 50 50 /* … … 67 67 { 68 68 extern int end; 69 rtems_unsigned32heap_start;69 uint32_t heap_start; 70 70 71 heap_start = ( rtems_unsigned32) &end;71 heap_start = (uint32_t) &end; 72 72 if (heap_start & (CPU_ALIGNMENT-1)) 73 73 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); … … 105 105 106 106 BSP_Configuration.work_space_start = 107 (void *)((u nsigned64)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);107 (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7); 108 108 109 109 /* -
c/src/lib/libbsp/mips/p4000/times
rd1c60fb r654c115c 23 23 Timer Source: on-CPU cycle counter 24 24 25 Column A:RTEMS compiled with 64 bit pointers and 64 bit u nsigned32types26 Column B:RTEMS compiled with 32 bit pointers and 32 bit u nsigned32types25 Column A:RTEMS compiled with 64 bit pointers and 64 bit uint32_t types 26 Column B:RTEMS compiled with 32 bit pointers and 32 bit uint32_t types 27 27 28 28 # DESCRIPTION A B
Note: See TracChangeset
for help on using the changeset viewer.