42,10 → 42,7 |
#include <preemption.h> |
#include <print.h> |
#include <debug.h> |
|
#ifdef CONFIG_SYMTAB |
#include <symtab.h> |
#endif |
|
#ifdef CONFIG_FB |
#include <genarch/fb/fb.h> |
80,9 → 77,6 |
{ |
count_t i = 0; |
bool deadlock_reported = false; |
#ifdef CONFIG_SYMTAB |
char *symbol; |
#endif |
|
preemption_disable(); |
while (test_and_set(&sl->val)) { |
111,14 → 105,10 |
continue; |
#endif |
if (i++ > DEADLOCK_THRESHOLD) { |
printf("cpu%u: looping on spinlock %" PRIp ":%s, caller=%" PRIp, |
CPU->id, sl, sl->name, CALLER); |
#ifdef CONFIG_SYMTAB |
symbol = get_symtab_entry(CALLER); |
if (symbol) |
printf("(%s)", symbol); |
#endif |
printf("\n"); |
printf("cpu%u: looping on spinlock %" PRIp ":%s, " |
"caller=%" PRIp "(%s)", CPU->id, sl, sl->name, |
CALLER, symtab_fmt_name_lookup(CALLER)); |
|
i = 0; |
deadlock_reported = true; |
} |