Rev 552 | Rev 625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 552 | Rev 553 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | #else |
49 | #else |
50 | 50 | ||
51 | struct spinlock { |
51 | struct spinlock { |
52 | }; |
52 | }; |
53 | 53 | ||
54 | #define spinlock_initialize(x) |
54 | #define spinlock_initialize(x,name) |
55 | #define spinlock_lock(x) preemption_disable() |
55 | #define spinlock_lock(x) preemption_disable() |
56 | #define spinlock_trylock(x) (preemption_disable(), 1) |
56 | #define spinlock_trylock(x) (preemption_disable(), 1) |
57 | #define spinlock_unlock(x) preemption_enable() |
57 | #define spinlock_unlock(x) preemption_enable() |
58 | 58 | ||
59 | #endif |
59 | #endif |