Changeset bde7f268 in rtems
- Timestamp:
- 03/31/04 03:52:40 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 94993c0
- Parents:
- d352678
- Location:
- c/src/lib/libbsp/powerpc/shared
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/powerpc/shared/ChangeLog
rd352678 rbde7f268 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * bootloader/misc.c, bootloader/pci.c, console/inch.c, 4 include/bsp.h, pci/pci.c, startup/bspstart.c, startup/sbrk.c: 5 Convert to using c99 fixed size types. 6 1 7 2004-03-05 Joel Sherrill <joel@OARcorp.com> 2 8 -
c/src/lib/libbsp/powerpc/shared/bootloader/misc.c
rd352678 rbde7f268 238 238 /* this is from rtems_bsp_delay from libcpu */ 239 239 void 240 boot_udelay(u nsigned32_microseconds)241 { 242 u nsigned32start, ticks, now;240 boot_udelay(uint32_t _microseconds) 241 { 242 uint32_t start, ticks, now; 243 243 244 244 ticks = _microseconds * ticks_per_ms / 1000; -
c/src/lib/libbsp/powerpc/shared/bootloader/pci.c
rd352678 rbde7f268 1116 1116 static struct _addr_start 1117 1117 { 1118 u nsigned32start_pcimem;1119 u nsigned32start_pciio;1120 u nsigned32start_prefetch;1118 uint32_t start_pcimem; 1119 uint32_t start_pciio; 1120 uint32_t start_prefetch; 1121 1121 } astart; 1122 1122 … … 1181 1181 { 1182 1182 struct _addr_start addrhold; 1183 u nsigned8base8, limit8;1184 u nsigned16base16, limit16, ubase16, ulimit16;1183 uint8_t base8, limit8; 1184 uint16_t base16, limit16, ubase16, ulimit16; 1185 1185 1186 1186 /* save the base address values */ … … 1213 1213 else 1214 1214 { 1215 base8 = (u nsigned8) ((addrhold.start_pciio >> 8) & 0xf0);1216 ubase16 = (u nsigned16)(addrhold.start_pciio >> 16);1217 limit8 = (u nsigned8) ((astart.start_pciio >> 8 ) & 0xf0);1218 ulimit16 = (u nsigned16)(astart.start_pciio >> 16);1215 base8 = (uint8_t) ((addrhold.start_pciio >> 8) & 0xf0); 1216 ubase16 = (uint16_t)(addrhold.start_pciio >> 16); 1217 limit8 = (uint8_t) ((astart.start_pciio >> 8 ) & 0xf0); 1218 ulimit16 = (uint16_t)(astart.start_pciio >> 16); 1219 1219 astart.start_pciio += 0x1000; 1220 1220 } … … 1241 1241 else 1242 1242 { 1243 limit16= (u nsigned16)((astart.start_pcimem >> 16) & 0xfff0);1244 base16 = (u nsigned16)((addrhold.start_pcimem >> 16) & 0xfff0);1243 limit16= (uint16_t)((astart.start_pcimem >> 16) & 0xfff0); 1244 base16 = (uint16_t)((addrhold.start_pcimem >> 16) & 0xfff0); 1245 1245 astart.start_pcimem += 0x100000; 1246 1246 } … … 1262 1262 else 1263 1263 { 1264 limit16= (u nsigned16)((addrhold.start_prefetch >> 16) & 0xfff0);1265 base16 = (u nsigned16)((astart.start_prefetch >> 16) & 0xfff0);1264 limit16= (uint16_t)((addrhold.start_prefetch >> 16) & 0xfff0); 1265 base16 = (uint16_t)((astart.start_prefetch >> 16) & 0xfff0); 1266 1266 astart.start_prefetch -= 0x100000; 1267 1267 } … … 1278 1278 1279 1279 #ifdef WRITE_BRIDGE_ENABLE 1280 pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_BRIDGE_CONTROL, (u nsigned16)( PCI_BRIDGE_CTL_PARITY |1280 pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_BRIDGE_CONTROL, (uint16_t)( PCI_BRIDGE_CTL_PARITY | 1281 1281 PCI_BRIDGE_CTL_SERR )); 1282 1282 1283 pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_COMMAND, (u nsigned16)( PCI_COMMAND_IO |1283 pcibios_write_config_word(pdev->bus->number, pdev->devfn, PCI_COMMAND, (uint16_t)( PCI_COMMAND_IO | 1284 1284 PCI_COMMAND_MEMORY | 1285 1285 PCI_COMMAND_MASTER | -
c/src/lib/libbsp/powerpc/shared/console/inch.c
rd352678 rbde7f268 60 60 61 61 static char kbd_buffer[KBD_BUF_SIZE]; 62 static rtems_unsigned16kbd_first = 0;63 static rtems_unsigned16kbd_last = 0;64 static rtems_unsigned16kbd_end = KBD_BUF_SIZE - 1;62 static uint16_t kbd_first = 0; 63 static uint16_t kbd_last = 0; 64 static uint16_t kbd_end = KBD_BUF_SIZE - 1; 65 65 66 66 /*-------------------------------------------------------------------------+ -
c/src/lib/libbsp/powerpc/shared/include/bsp.h
rd352678 rbde7f268 134 134 #define Cause_tm27_intr() \ 135 135 do { \ 136 u nsigned32_clicks = 8; \136 uint32_t _clicks = 8; \ 137 137 asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 138 138 } while (0) … … 141 141 #define Clear_tm27_intr() \ 142 142 do { \ 143 u nsigned32_clicks = 0xffffffff; \143 uint32_t _clicks = 0xffffffff; \ 144 144 asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ 145 145 } while (0) … … 147 147 #define Lower_tm27_intr() \ 148 148 do { \ 149 u nsigned32_msr = 0; \149 uint32_t _msr = 0; \ 150 150 _ISR_Set_level( 0 ); \ 151 151 asm volatile( "mfmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \ -
c/src/lib/libbsp/powerpc/shared/pci/pci.c
rd352678 rbde7f268 283 283 { 284 284 int pbus, pslot; 285 u nsigned8bussec, buspri;286 u nsigned16devid, vendorid, dclass;285 uint8_t bussec, buspri; 286 uint16_t devid, vendorid, dclass; 287 287 288 288 for(pbus=0; pbus< BusCountPCI(); pbus++) … … 338 338 { 339 339 unsigned char cvalue; 340 u nsigned16devid;340 uint16_t devid; 341 341 int ismatch, i, j, pbus, pslot, int_pin, int_name; 342 342 -
c/src/lib/libbsp/powerpc/shared/startup/bspstart.c
rd352678 rbde7f268 113 113 114 114 void bsp_postdriver_hook(void); 115 void bsp_libc_init( void *, u nsigned32, int );115 void bsp_libc_init( void *, uint32_t, int ); 116 116 117 117 /* … … 131 131 void bsp_pretasking_hook(void) 132 132 { 133 rtems_unsigned32heap_start;134 rtems_unsigned32heap_size;135 rtems_unsigned32heap_sbrk_spared;136 extern rtems_unsigned32 _bsp_sbrk_init(rtems_unsigned32, rtems_unsigned32*);137 138 heap_start = (( rtems_unsigned32) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;133 uint32_t heap_start; 134 uint32_t heap_size; 135 uint32_t heap_sbrk_spared; 136 extern uint32_t _bsp_sbrk_init(uint32_t, uint32_t*); 137 138 heap_start = ((uint32_t) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE; 139 139 if (heap_start & (CPU_ALIGNMENT-1)) 140 140 heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); … … 221 221 222 222 /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */ 223 *((u nsigned32*)stack) = 0;223 *((uint32_t*)stack) = 0; 224 224 225 225 /* … … 233 233 234 234 /* make sure it's properly aligned */ 235 (u nsigned32)intrStack &= ~(CPU_STACK_ALIGNMENT-1);235 (uint32_t)intrStack &= ~(CPU_STACK_ALIGNMENT-1); 236 236 237 237 /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */ 238 *((u nsigned32*)intrStack) = 0;238 *((uint32_t*)intrStack) = 0; 239 239 240 240 _write_SPRG1((unsigned int)intrStack); -
c/src/lib/libbsp/powerpc/shared/startup/sbrk.c
rd352678 rbde7f268 28 28 #include <unistd.h> 29 29 30 static rtems_unsigned32remaining_start=0;31 static rtems_unsigned32remaining_size=0;30 static uint32_t remaining_start=0; 31 static uint32_t remaining_size=0; 32 32 33 33 #define LIMIT_32M 0x02000000 34 34 35 rtems_unsigned32 36 _bsp_sbrk_init( rtems_unsigned32 heap_start, rtems_unsigned32*heap_size_p)35 uint32_t 36 _bsp_sbrk_init(uint32_t heap_start, uint32_t *heap_size_p) 37 37 { 38 rtems_unsigned32rval=0;38 uint32_t rval=0; 39 39 40 40 remaining_start = heap_start;
Note: See TracChangeset
for help on using the changeset viewer.