Fix typo in <sys/lock.h>

Sorry, there was a typo in <sys/lock.h> which leads to memory corruption
since not enough space is reserved for the lock object.

newlib/ChangeLog
2015-07-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>

	* libc/sys/rtems/include/sys/lock.h (__LOCK_INIT_RECURSIVE): Use
	proper type.
This commit is contained in:
Sebastian Huber 2015-07-30 02:53:04 -05:00 committed by Joel Sherrill
parent 127c38bd44
commit b7ca25162a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-07-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/sys/rtems/include/sys/lock.h (__LOCK_INIT_RECURSIVE): Use
proper type.
2015-07-30 Wilco Dijkstra <wdijkstr@arm.com>
* libc/machine/aarch64/memset.S (memset): Rewrite.

View File

@ -216,7 +216,7 @@ typedef struct _Mutex_recursive_Control _LOCK_RECURSIVE_T;
_qualifier _LOCK_T _designator = _MUTEX_INITIALIZER
#define __LOCK_INIT_RECURSIVE(_qualifier, _designator) \
_qualifier _LOCK_T _designator = _MUTEX_RECURSIVE_INITIALIZER
_qualifier _LOCK_RECURSIVE_T _designator = _MUTEX_RECURSIVE_INITIALIZER
#define __lock_init(_lock) _Mutex_Initialize(&_lock)
#define __lock_acquire(_lock) _Mutex_Acquire(&_lock)