From af1ce4b2e637ceb418ea72d51c49a3eee276a938 Mon Sep 17 00:00:00 2001 From: stefan Date: Sat, 15 Apr 2023 05:02:02 +0000 Subject: added multiprocessor support --- sys/include/spinlock.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/include/spinlock.h') 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 */ -- cgit v1.2.3