Rev 534 | Rev 1062 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 623 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #include <arch/context.h> |
35 | #include <arch/context.h> |
36 | 36 | ||
37 | #include <synch/waitq.h> |
37 | #include <synch/waitq.h> |
38 | #include <synch/semaphore.h> |
38 | #include <synch/semaphore.h> |
39 | #include <synch/synch.h> |
39 | #include <synch/synch.h> |
- | 40 | #include <synch/spinlock.h> |
|
40 | 41 | ||
41 | static semaphore_t sem; |
42 | static semaphore_t sem; |
42 | 43 | ||
43 | static spinlock_t lock; |
44 | SPINLOCK_INITIALIZE(lock); |
44 | 45 | ||
45 | static waitq_t can_start; |
46 | static waitq_t can_start; |
46 | 47 | ||
47 | __u32 seed = 0xdeadbeef; |
48 | __u32 seed = 0xdeadbeef; |
48 | 49 |