Subversion Repositories Kolibri OS

Rev

Rev 1408 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1408 Rev 4065
Line 12... Line 12...
12
 * Released under the General Public License (GPL).
12
 * Released under the General Public License (GPL).
13
 *
13
 *
14
 * In the debug case, 1 means unlocked, 0 means locked. (the values
14
 * In the debug case, 1 means unlocked, 0 means locked. (the values
15
 * are inverted, to catch initialization bugs)
15
 * are inverted, to catch initialization bugs)
16
 *
16
 *
17
 * No atomicity anywhere, we are on UP.
17
 * No atomicity anywhere, we are on UP. However, we still need
-
 
18
 * the compiler barriers, because we do not want the compiler to
-
 
19
 * move potentially faulting instructions (notably user accesses)
-
 
20
 * into the locked sequence, resulting in non-atomic execution.
18
 */
21
 */
Line 19... Line 22...
19
 
22
 
20
#ifdef CONFIG_DEBUG_SPINLOCK
23
#ifdef CONFIG_DEBUG_SPINLOCK