Changeset e16e0d59 in mainline for kernel/generic/src/synch/spinlock.c
- Timestamp:
- 2009-03-17T20:33:18Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5eb90cb
- Parents:
- b1c8dc0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/spinlock.c
rb1c8dc0 re16e0d59 43 43 #include <print.h> 44 44 #include <debug.h> 45 46 #ifdef CONFIG_SYMTAB47 45 #include <symtab.h> 48 #endif49 46 50 47 #ifdef CONFIG_FB … … 81 78 count_t i = 0; 82 79 bool deadlock_reported = false; 83 #ifdef CONFIG_SYMTAB84 char *symbol;85 #endif86 80 87 81 preemption_disable(); … … 112 106 #endif 113 107 if (i++ > DEADLOCK_THRESHOLD) { 114 printf("cpu%u: looping on spinlock %" PRIp ":%s, caller=%" PRIp, 115 CPU->id, sl, sl->name, CALLER); 116 #ifdef CONFIG_SYMTAB 117 symbol = get_symtab_entry(CALLER); 118 if (symbol) 119 printf("(%s)", symbol); 120 #endif 121 printf("\n"); 108 printf("cpu%u: looping on spinlock %" PRIp ":%s, " 109 "caller=%" PRIp "(%s)", CPU->id, sl, sl->name, 110 CALLER, symtab_fmt_name_lookup(CALLER)); 111 122 112 i = 0; 123 113 deadlock_reported = true;
Note:
See TracChangeset
for help on using the changeset viewer.