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 --- echo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'echo.c') diff --git a/echo.c b/echo.c index 89e19a9..5d0c5a4 100644 --- a/echo.c +++ b/echo.c @@ -5,7 +5,7 @@ main(int argc, char *argv[]) { int i; - for(i = 0; i < argc; i++){ + for(i = 1; i < argc; i++){ puts(argv[i]); puts(" "); } -- cgit v1.2.3