Use separate reentrancy structures for each core.
A locking implementation based on Lamport's bakery.
Make sure lock owner is invalid when lock is not held.
Support for invalidating data and method cache.
Invalidate data cache when acquiring lock.
Allocate reentrancy structures with malloc().
Add define to avoid any global reentrancy structure.
No locking or reentrancy structures when compiling for RTEMS.
Merge branch 'reentrancy'