Rev 557 | Rev 622 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 557 | Rev 581 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | * @param sl Pointer to spinlock_t structure. |
61 | * @param sl Pointer to spinlock_t structure. |
62 | */ |
62 | */ |
63 | void spinlock_lock(spinlock_t *sl) |
63 | void spinlock_lock(spinlock_t *sl) |
64 | { |
64 | { |
65 | count_t i = 0; |
65 | count_t i = 0; |
66 | __address caller = ((__address *) &sl)[-1]; |
66 | __address caller = CALLER(sl); |
67 | char *symbol; |
67 | char *symbol; |
68 | bool deadlock_reported = false; |
68 | bool deadlock_reported = false; |
69 | 69 | ||
70 | preemption_disable(); |
70 | preemption_disable(); |
71 | while (test_and_set(&sl->val)) { |
71 | while (test_and_set(&sl->val)) { |