From 0e84a0ec6e7893dad13dff9a958c5bc987b79c82 Mon Sep 17 00:00:00 2001 From: rtm Date: Tue, 8 Aug 2006 19:58:06 +0000 Subject: fix race in holding() check in acquire() give cpu1 a TSS and gdt for when it enters scheduler() and a pseudo proc[] entry for each cpu cpu0 waits for each other cpu to start up read() for files --- ide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ide.c') diff --git a/ide.c b/ide.c index d6bef6d..af509fc 100644 --- a/ide.c +++ b/ide.c @@ -51,14 +51,14 @@ ide_init(void) } ioapic_enable (14, 1); // 14 is IRQ # for IDE ide_wait_ready(0); - cprintf ("ide_init:done\n"); + cprintf ("cpu%d: ide_init:done\n", cpu()); } void ide_intr(void) { acquire(&ide_lock); - cprintf("%d: ide_intr\n", cpu()); + cprintf("cpu%d: ide_intr\n", cpu()); wakeup(&request[tail]); release(&ide_lock); lapic_eoi(); -- cgit v1.2.3