Changeset 17b73dc in rtems


Ignore:
Timestamp:
Nov 9, 2007, 9:52:09 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
15910221
Parents:
6dd411aa
Message:

2007-11-09 Joel Sherrill <joel.sherrill@…>

  • score/src/apimutexlock.c, score/src/apimutexunlock.c: Functions were in opposite files. Whoops!
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6dd411aa r17b73dc  
     12007-11-09      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/src/apimutexlock.c, score/src/apimutexunlock.c: Functions were
     4        in opposite files. Whoops!
     5
    162007-11-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/src/apimutexlock.c

    r6dd411aa r17b73dc  
    1717#include <rtems/score/apimutex.h>
    1818
    19 void _API_Mutex_Unlock(
     19void _API_Mutex_Lock(
    2020  API_Mutex_Control *the_mutex
    2121)
    2222{
    23   _Thread_Disable_dispatch();
    24     _CORE_mutex_Surrender(
    25       &the_mutex->Mutex,
    26       the_mutex->Object.id,
    27       NULL
    28    );
    29   _Thread_Enable_dispatch();
     23  ISR_Level level;
     24
     25  _ISR_Disable( level );
     26
     27  _CORE_mutex_Seize(
     28    &the_mutex->Mutex,
     29    the_mutex->Object.id,
     30    TRUE,
     31    0,
     32    level
     33  );
    3034}
  • cpukit/score/src/apimutexunlock.c

    r6dd411aa r17b73dc  
    1717#include <rtems/score/apimutex.h>
    1818
    19 void _API_Mutex_Lock(
     19void _API_Mutex_Unlock(
    2020  API_Mutex_Control *the_mutex
    2121)
    2222{
    23   ISR_Level level;
    24 
    25   _ISR_Disable( level );
    26 
    27   _CORE_mutex_Seize(
    28     &the_mutex->Mutex,
    29     the_mutex->Object.id,
    30     TRUE,
    31     0,
    32     level
    33   );
     23  _Thread_Disable_dispatch();
     24    _CORE_mutex_Surrender(
     25      &the_mutex->Mutex,
     26      the_mutex->Object.id,
     27      NULL
     28   );
     29  _Thread_Enable_dispatch();
    3430}
Note: See TracChangeset for help on using the changeset viewer.