Rev 1104 | Rev 1264 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1104 | Rev 1224 | ||
---|---|---|---|
Line 67... | Line 67... | ||
67 | bool deadlock_reported = false; |
67 | bool deadlock_reported = false; |
68 | 68 | ||
69 | preemption_disable(); |
69 | preemption_disable(); |
70 | while (test_and_set(&sl->val)) { |
70 | while (test_and_set(&sl->val)) { |
71 | if (i++ > 300000 && sl!=&printflock) { |
71 | if (i++ > 300000 && sl!=&printflock) { |
72 | printf("cpu%d: looping on spinlock %p:%s, caller=%p", |
72 | printf("cpu%d: looping on spinlock %.*p:%s, caller=%.*p", |
73 | CPU->id, sl, sl->name, CALLER); |
73 | CPU->id, sizeof(__address) * 2, sl, sl->name, sizeof(__address) * 2, CALLER); |
74 | symbol = get_symtab_entry(CALLER); |
74 | symbol = get_symtab_entry(CALLER); |
75 | if (symbol) |
75 | if (symbol) |
76 | printf("(%s)", symbol); |
76 | printf("(%s)", symbol); |
77 | printf("\n"); |
77 | printf("\n"); |
78 | i = 0; |
78 | i = 0; |