summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2005-05-06 20:10:04 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2005-05-06 20:10:04 +0000
commitc3be7fdde11b1f137766f4410a738cabd703a6af (patch)
treed0a3d03824a8f382796f4dd8e0bb19099426c224 /c/src/lib/libbsp/powerpc
parent2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com> (diff)
downloadrtems-c3be7fdde11b1f137766f4410a738cabd703a6af.tar.bz2
2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>
* console/init68360.c, include/bsp.h, startup/bspstart.c: Changed rtems_unsigned types to uint types
Diffstat (limited to 'c/src/lib/libbsp/powerpc')
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/console/init68360.c2
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/include/bsp.h6
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c35
4 files changed, 28 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
index cc031a1ae0..33a988fc76 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>
+
+ * console/init68360.c, include/bsp.h, startup/bspstart.c: Changed
+ rtems_unsigned types to uint types
+
2005-05-03 Joel Sherrill <joel@OARcorp.com>
* include/.cvsignore: New file.
diff --git a/c/src/lib/libbsp/powerpc/ep1a/console/init68360.c b/c/src/lib/libbsp/powerpc/ep1a/console/init68360.c
index 1bc1be3aad..d3606ffa4b 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/console/init68360.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/console/init68360.c
@@ -25,7 +25,7 @@
* Send a command to the CPM RISC processer
*/
-void M360ExecuteRISC( volatile m360_t *m360, rtems_unsigned16 command)
+void M360ExecuteRISC( volatile m360_t *m360, uint16_t command)
{
rtems_unsigned16 sr;
diff --git a/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h b/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h
index 8c13a506d7..fa48060c55 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h
+++ b/c/src/lib/libbsp/powerpc/ep1a/include/bsp.h
@@ -181,9 +181,9 @@ extern int BSP_connect_clock_handler (void);
/*
* FLASH
*/
-int BSP_FLASH_Enable_writes( rtems_unsigned32 area );
-int BSP_FLASH_Disable_writes( rtems_unsigned32 area );
-void BSP_FLASH_set_page( rtems_unsigned8 page );
+int BSP_FLASH_Enable_writes( uint32_t area );
+int BSP_FLASH_Disable_writes( uint32_t area );
+void BSP_FLASH_set_page( uint8_t page );
#define BSP_FLASH_ENABLE_WRITES( _area) BSP_FLASH_Enable_writes( _area )
#define BSP_FLASH_DISABLE_WRITES(_area) BSP_FLASH_Disable_writes( _area )
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index 9fe3874e33..a0d30209a0 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -157,7 +157,7 @@ rtems_cpu_table Cpu_table;
char *rtems_progname;
int BSP_FLASH_Disable_writes(
- rtems_unsigned32 area
+ uint32_t area
)
{
unsigned char data;
@@ -170,7 +170,7 @@ int BSP_FLASH_Disable_writes(
}
int BSP_FLASH_Enable_writes(
- rtems_unsigned32 area /* IN */
+ uint32_t area /* IN */
)
{
unsigned char data;
@@ -183,7 +183,7 @@ int BSP_FLASH_Enable_writes(
}
void BSP_FLASH_set_page(
- rtems_unsigned8 page
+ uint8_t page
)
{
unsigned char data;
@@ -218,27 +218,30 @@ void bsp_libc_init( void *, unsigned32, int );
void bsp_pretasking_hook(void)
{
- rtems_unsigned32 heap_start;
- rtems_unsigned32 heap_size;
- rtems_unsigned32 heap_sbrk_spared;
- extern rtems_unsigned32 _bsp_sbrk_init(rtems_unsigned32, rtems_unsigned32*);
- heap_start = ((rtems_unsigned32) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;
- if (heap_start & (CPU_ALIGNMENT-1))
- heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
+ uint32_t heap_start;
+ uint32_t heap_size;
+ uint32_t heap_sbrk_spared;
- heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
+ extern uint32_t _bsp_sbrk_init(uint32_t, uint32_t*);
+
+ heap_start = ((uint32_t) __rtems_end) +INIT_STACK_SIZE + INTR_STACK_SIZE;
+ if (heap_start & (CPU_ALIGNMENT-1))
+ heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
+
+ heap_size = (BSP_mem_size - heap_start) - BSP_Configuration.work_space_size;
- heap_sbrk_spared=_bsp_sbrk_init(heap_start, &heap_size);
+ heap_sbrk_spared=_bsp_sbrk_init(heap_start, &heap_size);
#ifdef SHOW_MORE_INIT_SETTINGS
- printk(" HEAP start %x size %x (%x bytes spared for sbrk)\n", heap_start, heap_size, heap_sbrk_spared);
+ printk(" HEAP start %x size %x (%x bytes spared for sbrk)\n",
+ heap_start, heap_size, heap_sbrk_spared);
#endif
- bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
- rsPMCQ1Init();
+ bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
+ rsPMCQ1Init();
#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
+ rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
#endif
}