forked from Imagelibrary/rtems
added cast to eliminate warning
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user