Subversion Repositories HelenOS

Rev

Rev 11 | Rev 111 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 15
Line 47... Line 47...
47
    int i = 0;
47
    int i = 0;
48
    __address caller = ((__u32 *) &sl)[-1];
48
    __address caller = ((__u32 *) &sl)[-1];
49
 
49
 
50
    while (test_and_set(&sl->val)) {
50
    while (test_and_set(&sl->val)) {
51
        if (i++ > 300000) {
51
        if (i++ > 300000) {
52
            printf("cpu%d: looping on spinlock %X, caller=%X\n", the->cpu->id, sl, caller);
52
            printf("cpu%d: looping on spinlock %X, caller=%X\n", CPU->id, sl, caller);
53
            i = 0;
53
            i = 0;
54
        }
54
        }
55
    }
55
    }
56
 
56
 
57
}
57
}