added cast to eliminate warning

This commit is contained in:
Joel Sherrill
1997-04-07 21:26:49 +00:00
parent 930b3d5c2d
commit 588c9ede55
3 changed files with 5 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ fast_idle_switch_hook(rtems_tcb *current_task,
static rtems_unsigned32 fast_clock; static rtems_unsigned32 fast_clock;
/* init our params on first call */ /* init our params on first call */
if (normal_clock == ~0) if (normal_clock == (rtems_unsigned32) ~0)
{ {
normal_clock = CPU_HPPA_CLICKS_PER_TICK; normal_clock = CPU_HPPA_CLICKS_PER_TICK;
fast_clock = CPU_HPPA_CLICKS_PER_TICK / 0x100; fast_clock = CPU_HPPA_CLICKS_PER_TICK / 0x100;

View File

@@ -62,7 +62,7 @@ void bsp_libc_init()
if (heap_start & (CPU_ALIGNMENT-1)) if (heap_start & (CPU_ALIGNMENT-1))
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
if (heap_start > RAM_END) { if (heap_start > (rtems_unsigned32) RAM_END) {
/* rtems_fatal_error_occurred can not be used before initalization */ /* rtems_fatal_error_occurred can not be used before initalization */
RAW_PUTS("\n\rRTEMS: Out of memory.\n\r"); RAW_PUTS("\n\rRTEMS: Out of memory.\n\r");
RAW_PUTS("RTEMS: Check RAM_END and the size of the work space.\n\r"); RAW_PUTS("RTEMS: Check RAM_END and the size of the work space.\n\r");

View File

@@ -55,9 +55,10 @@ void Shm_Get_configuration(
/* A shared mem space has bee left between RAM_END and DRAM_END /* A shared mem space has bee left between RAM_END and DRAM_END
on the first node*/ on the first node*/
if (localnode == 1) if (localnode == 1)
BSP_shm_cfgtbl.base = RAM_END; BSP_shm_cfgtbl.base = (vol_u32 *) RAM_END;
else else
BSP_shm_cfgtbl.base = DRAM_END + RAM_END; BSP_shm_cfgtbl.base = (vol_u32 *) (DRAM_END + RAM_END);
BSP_shm_cfgtbl.length = DRAM_END - RAM_END; BSP_shm_cfgtbl.length = DRAM_END - RAM_END;
BSP_shm_cfgtbl.format = SHM_BIG; BSP_shm_cfgtbl.format = SHM_BIG;