summaryrefslogtreecommitdiff
path: root/sys/include/spinlock.h
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2023-04-15 05:02:02 +0000
committerstefan <stefan@s00.xyz>2023-04-15 05:02:02 +0000
commitaf1ce4b2e637ceb418ea72d51c49a3eee276a938 (patch)
tree4d6a33644f8489e4f582f6e320bd6581b94fb642 /sys/include/spinlock.h
parent8cceb31dcaf4641d43f324fa3301b37859ebfade (diff)
downloadsv-af1ce4b2e637ceb418ea72d51c49a3eee276a938.tar.gz
added multiprocessor support
Diffstat (limited to 'sys/include/spinlock.h')
-rw-r--r--sys/include/spinlock.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/include/spinlock.h b/sys/include/spinlock.h
index 3400445..ef81499 100644
--- a/sys/include/spinlock.h
+++ b/sys/include/spinlock.h
@@ -3,9 +3,13 @@
struct spinlock {
int locked;
- const char *name;
+ int tp;
};
-void initlock(struct spinlock *, const char *);
+void initlock(struct spinlock *);
+
+void acquire(struct spinlock *);
+
+void release(struct spinlock *);
#endif /* _LOCK_H */