Changeset cc9073d in rtems


Ignore:
Timestamp:
Nov 3, 2005, 6:35:07 PM (14 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e156c633
Parents:
368aa67
Message:

2005-11-03 straumanatslacdotstanford.edu

  • mpc6xx/clock/c_clock.c: disable interrupts around decrementer update to eliminate a race condition
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r368aa67 rcc9073d  
     12005-11-03      straumanatslacdotstanford.edu
     2
     3        * mpc6xx/clock/c_clock.c: disable interrupts around decrementer update
     4        to eliminate a race condition
     5
    162005-11-02      straumanatslacdotstanford.edu
    27
  • c/src/lib/libcpu/powerpc/mpc6xx/clock/c_clock.c

    r368aa67 rcc9073d  
    8282   */
    8383  do {
     84        register uint32_t flags;
     85        rtems_interrupt_disable(flags);
    8486        asm volatile ("mfdec %0; add %0, %0, %1; mtdec %0":"=&r"(decr):"r"(Clock_Decrementer_value));
     87        rtems_interrupt_enable(flags);
    8588
    8689        Clock_driver_ticks += 1;
Note: See TracChangeset for help on using the changeset viewer.