Changeset 2d93f1f9 in mainline
- Timestamp:
- 2005-12-06T21:58:18Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a80d406
- Parents:
- 36e7b6c3
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/i8042.c
r36e7b6c3 r2d93f1f9 241 241 trap_register(VECTOR_KBD, i8042_interrupt); 242 242 trap_virtual_enable_irqs(1<<IRQ_KBD); 243 spinlock_initialize(&keylock );243 spinlock_initialize(&keylock, "i8042_lock"); 244 244 chardev_initialize(&kbrd, &ops); 245 245 stdin = &kbrd; -
generic/include/synch/spinlock.h
r36e7b6c3 r2d93f1f9 36 36 #ifdef CONFIG_SMP 37 37 struct spinlock { 38 #ifdef CONFIG_DEBUG_SPINLOCK 39 char *name; 40 #endif 38 41 int val; 39 42 }; 40 43 41 extern void spinlock_initialize(spinlock_t *sl );44 extern void spinlock_initialize(spinlock_t *sl, char *name); 42 45 extern void spinlock_lock(spinlock_t *sl); 43 46 extern int spinlock_trylock(spinlock_t *sl); -
generic/src/console/chardev.c
r36e7b6c3 r2d93f1f9 40 40 { 41 41 waitq_initialize(&chardev->wq); 42 spinlock_initialize(&chardev->lock );42 spinlock_initialize(&chardev->lock, "chardev"); 43 43 chardev->counter = 0; 44 44 chardev->index = 0; -
generic/src/console/kconsole.c
r36e7b6c3 r2d93f1f9 93 93 void kconsole_init(void) 94 94 { 95 spinlock_initialize(&cmd_lock );95 spinlock_initialize(&cmd_lock, "kconsole_cmd"); 96 96 list_initialize(&cmd_head); 97 97 … … 103 103 help_info.argv = NULL; 104 104 105 spinlock_initialize(&help_info.lock );105 spinlock_initialize(&help_info.lock, "kconsole_help"); 106 106 link_initialize(&help_info.link); 107 107 … … 117 117 desc_info.argv = &desc_argv; 118 118 119 spinlock_initialize(&desc_info.lock );119 spinlock_initialize(&desc_info.lock, "kconsole_desc"); 120 120 link_initialize(&desc_info.link); 121 121 … … 131 131 halt_info.argv = NULL; 132 132 133 spinlock_initialize(&halt_info.lock );133 spinlock_initialize(&halt_info.lock, "kconsole_halt"); 134 134 link_initialize(&halt_info.link); 135 135 -
generic/src/mm/frame.c
r36e7b6c3 r2d93f1f9 242 242 void zone_init(void) 243 243 { 244 spinlock_initialize(&zone_head_lock );244 spinlock_initialize(&zone_head_lock, "zone_head_lock"); 245 245 list_initialize(&zone_head); 246 246 } … … 317 317 if (z) { 318 318 link_initialize(&z->link); 319 spinlock_initialize(&z->lock );319 spinlock_initialize(&z->lock, "zone_lock"); 320 320 321 321 z->base = start; -
generic/src/mm/heap.c
r36e7b6c3 r2d93f1f9 47 47 void early_heap_init(__address heap, size_t size) 48 48 { 49 spinlock_initialize(&heaplock );49 spinlock_initialize(&heaplock, "heap_lock"); 50 50 memsetb(heap, size, 0); 51 51 chunk0 = (chunk_t *) heap; -
generic/src/mm/tlb.c
r36e7b6c3 r2d93f1f9 44 44 { 45 45 if (config.cpu_active == 1) 46 spinlock_initialize(&tlblock );46 spinlock_initialize(&tlblock, "tlb_lock"); 47 47 48 48 tlb_init_arch(); -
generic/src/mm/vm.c
r36e7b6c3 r2d93f1f9 56 56 m = (vm_t *) malloc(sizeof(vm_t)); 57 57 if (m) { 58 spinlock_initialize(&m->lock );58 spinlock_initialize(&m->lock, "vm_lock"); 59 59 list_initialize(&m->vm_area_head); 60 60 … … 118 118 a->mapping[i] = frame_alloc(0, ONE_FRAME); 119 119 120 spinlock_initialize(&a->lock );120 spinlock_initialize(&a->lock, "vm_area_lock"); 121 121 122 122 link_initialize(&a->link); -
generic/src/proc/task.c
r36e7b6c3 r2d93f1f9 49 49 { 50 50 TASK = NULL; 51 spinlock_initialize(&tasks_lock );51 spinlock_initialize(&tasks_lock, "tasks_lock"); 52 52 list_initialize(&tasks_head); 53 53 } … … 70 70 ta = (task_t *) malloc(sizeof(task_t)); 71 71 if (ta) { 72 spinlock_initialize(&ta->lock );72 spinlock_initialize(&ta->lock, "task_ta_lock"); 73 73 list_initialize(&ta->th_head); 74 74 list_initialize(&ta->tasks_link); -
generic/src/proc/thread.c
r36e7b6c3 r2d93f1f9 97 97 THREAD = NULL; 98 98 nrdy = 0; 99 spinlock_initialize(&threads_lock );99 spinlock_initialize(&threads_lock, "threads_lock"); 100 100 list_initialize(&threads_head); 101 101 } … … 174 174 ipl_t ipl; 175 175 176 spinlock_initialize(&t->lock );176 spinlock_initialize(&t->lock, "thread_t_lock"); 177 177 178 178 frame_ks = frame_alloc(FRAME_KA, ONE_FRAME); -
generic/src/synch/rwlock.c
r36e7b6c3 r2d93f1f9 76 76 */ 77 77 void rwlock_initialize(rwlock_t *rwl) { 78 spinlock_initialize(&rwl->lock );78 spinlock_initialize(&rwl->lock, "rwlock"); 79 79 mutex_initialize(&rwl->exclusive); 80 80 rwl->readers_in = 0; -
generic/src/synch/spinlock.c
r36e7b6c3 r2d93f1f9 34 34 #include <print.h> 35 35 #include <debug.h> 36 #include <symtab.h> 36 37 37 38 #ifdef CONFIG_SMP … … 43 44 * @param sl Pointer to spinlock_t structure. 44 45 */ 45 void spinlock_initialize(spinlock_t *sl )46 void spinlock_initialize(spinlock_t *sl, char *name) 46 47 { 47 48 sl->val = 0; 49 #ifdef CONFIG_DEBUG_SPINLOCK 50 sl->name = name; 51 #endif 48 52 } 49 53 … … 60 64 { 61 65 int i = 0; 62 __address caller = ((__u32 *) &sl)[-1]; 66 __address caller = ((__address *) &sl)[-1]; 67 char *symbol; 63 68 64 69 preemption_disable(); 65 70 while (test_and_set(&sl->val)) { 66 71 if (i++ > 300000) { 67 printf("cpu%d: looping on spinlock %X, caller=%X\n", CPU->id, sl, caller); 72 printf("cpu%d: looping on spinlock %p:%s, caller=%p", 73 CPU->id, sl, sl->name, caller); 74 symbol = get_symtab_entry(caller); 75 if (symbol) 76 printf("(%s)", symbol); 77 printf("\n"); 68 78 i = 0; 69 79 } -
generic/src/synch/waitq.c
r36e7b6c3 r2d93f1f9 47 47 void waitq_initialize(waitq_t *wq) 48 48 { 49 spinlock_initialize(&wq->lock );49 spinlock_initialize(&wq->lock, "waitq_lock"); 50 50 list_initialize(&wq->head); 51 51 wq->missed_wakeups = 0; -
generic/src/time/timeout.c
r36e7b6c3 r2d93f1f9 48 48 void timeout_init(void) 49 49 { 50 spinlock_initialize(&CPU->timeoutlock );50 spinlock_initialize(&CPU->timeoutlock, "timeout_lock"); 51 51 list_initialize(&CPU->timeout_active_head); 52 52 } … … 79 79 void timeout_initialize(timeout_t *t) 80 80 { 81 spinlock_initialize(&t->lock );81 spinlock_initialize(&t->lock, "timeout_t_lock"); 82 82 timeout_reinitialize(t); 83 83 } -
tools/config.py
r36e7b6c3 r2d93f1f9 40 40 def print_title(self): 41 41 if not self.printed: 42 sys.stdout.write(" *** %s ***\n" % self.title)42 sys.stdout.write("\n*** %s ***\n" % self.title) 43 43 self.printed = True 44 44 … … 313 313 # Last comment before question will be displayed to the user 314 314 comment = line[1:].strip() 315 elif line.startswith('## '):315 elif line.startswith('## '): 316 316 # Set title of the dialog window 317 317 dlg.set_title(line[2:].strip())
Note:
See TracChangeset
for help on using the changeset viewer.