bsps/powerpc: Fix potential integer overflow

Update #2356.
This commit is contained in:
Sebastian Huber
2015-05-29 08:59:41 +02:00
parent 3b8e3953c7
commit aff220db7a

View File

@@ -248,7 +248,7 @@ rtems_device_driver Clock_initialize(
Clock_TC.tc_get_timecount = Clock_Get_timecount;
Clock_TC.tc_counter_mask = 0xffffffff;
Clock_TC.tc_frequency = (1000 * BSP_bus_frequency) / BSP_time_base_divisor;
Clock_TC.tc_frequency = (UINT64_C(1000) * BSP_bus_frequency) / BSP_time_base_divisor;
Clock_TC.tc_quality = RTEMS_TIMECOUNTER_QUALITY_CLOCK_DRIVER;
rtems_timecounter_install(&Clock_TC);