summaryrefslogtreecommitdiff
path: root/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'bio.c')
-rw-r--r--bio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bio.c b/bio.c
index f847c2e..2b17a52 100644
--- a/bio.c
+++ b/bio.c
@@ -8,7 +8,13 @@
#include "buf.h"
struct buf buf[NBUF];
-struct spinlock buf_table_lock = { "buf_table" };
+struct spinlock buf_table_lock;
+
+void
+binit(void)
+{
+ initlock(&buf_table_lock, "buf_table");
+}
struct buf *
getblk()