From: Ben Pfaff Date: Sat, 9 Oct 2004 23:07:14 +0000 (+0000) Subject: Fix compile problems. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0da40877b8e8d3dd773409159b226300ee38a3a3;hp=68f6da7bea8a1b108785a98bcb56c76118f470ef;p=pintos-anon Fix compile problems. Thanks to Grant Patterson for reporting the problem. --- diff --git a/src/tests/threads/p1-3.c b/src/tests/threads/p1-3.c index 32c91e6..264ad47 100644 --- a/src/tests/threads/p1-3.c +++ b/src/tests/threads/p1-3.c @@ -8,6 +8,7 @@ #include "threads/test.h" #include +#include "threads/synch.h" #include "threads/thread.h" static void test_preempt (void); @@ -77,7 +78,7 @@ test_donate_return (void) thread_create ("acquire2", PRI_DEFAULT + 2, acquire_thread_func, &lock); printf ("This thread should have priority %d. Actual priority: %d.\n", PRI_DEFAULT + 2, thread_get_priority ()); - lock_release (); + lock_release (&lock); printf ("acquire1 and acquire2 must already have finished, in that order.\n" "This should be the last line before finishing this test.\n" "Priority donation test done.\n");