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=4fa4789e8ae898ef8a2e3fe15a27262e9f2e6c0b;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");