Subversion Repositories HelenOS

Rev

Rev 4348 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4348 Rev 4691
Line 73... Line 73...
73
 * @param sl Pointer to spinlock_t structure.
73
 * @param sl Pointer to spinlock_t structure.
74
 */
74
 */
75
#ifdef CONFIG_DEBUG_SPINLOCK
75
#ifdef CONFIG_DEBUG_SPINLOCK
76
void spinlock_lock_debug(spinlock_t *sl)
76
void spinlock_lock_debug(spinlock_t *sl)
77
{
77
{
78
    count_t i = 0;
78
    size_t i = 0;
79
    bool deadlock_reported = false;
79
    bool deadlock_reported = false;
80
 
80
 
81
    preemption_disable();
81
    preemption_disable();
82
    while (test_and_set(&sl->val)) {
82
    while (test_and_set(&sl->val)) {
83
 
83