Changeset 252dea2f in rtems


Ignore:
Timestamp:
Sep 5, 2008, 9:33:41 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f2b169a
Parents:
538583f
Message:

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • shmsupp/lock.c: Disable CPU interrupts when we have the shared memory locked. This is necessary to prevent deadlock.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    r538583f r252dea2f  
     12008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * shmsupp/lock.c: Disable CPU interrupts when we have the shared memory
     4        locked. This is necessary to prevent deadlock.
     5
    162008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/powerpc/psim/shmsupp/lock.c

    r538583f r252dea2f  
    4242 */
    4343
     44static rtems_interrupt_level level;
     45
    4446void Shm_Lock(
    4547  Shm_Locked_queue_Control *lq_cb
    4648)
    4749{
    48   (void) PSIM.Semaphore.lock;
     50  rtems_interrupt_disable( level );
     51    (void) PSIM.Semaphore.lock;
    4952}
    5053
     
    5962)
    6063{
    61   (void) PSIM.Semaphore.unlock;
     64    (void) PSIM.Semaphore.unlock;
     65  rtems_interrupt_enable( level );
    6266}
Note: See TracChangeset for help on using the changeset viewer.