Ignore:
Timestamp:
May 29, 2015, 6:59:41 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
8f6a3145
Parents:
3b8e395
git-author:
Sebastian Huber <sebastian.huber@…> (05/29/15 06:59:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/29/15 06:59:59)
Message:

bsps/powerpc: Fix potential integer overflow

Update #2356.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c

    r3b8e395 raff220d  
    249249  Clock_TC.tc_get_timecount = Clock_Get_timecount;
    250250  Clock_TC.tc_counter_mask = 0xffffffff;
    251   Clock_TC.tc_frequency = (1000 * BSP_bus_frequency) / BSP_time_base_divisor;
     251  Clock_TC.tc_frequency = (UINT64_C(1000) * BSP_bus_frequency) / BSP_time_base_divisor;
    252252  Clock_TC.tc_quality = RTEMS_TIMECOUNTER_QUALITY_CLOCK_DRIVER;
    253253  rtems_timecounter_install(&Clock_TC);
Note: See TracChangeset for help on using the changeset viewer.