summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-29 21:54:11 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-29 22:04:26 +0100
commite6284a8774b387ec23cda03b2af0ba3dcc09286f (patch)
treeb92a7dcae807f4b5c086f6f23f06748bf6181956 /Kernel/init.cpp
parentbea106fdb2fa29be294e088189aafcd19eb83be3 (diff)
downloadserenity-e6284a8774b387ec23cda03b2af0ba3dcc09286f.zip
Fix broken SpinLock.
The SpinLock was all backwards and didn't actually work. Fixing it exposed how wrong most of the locking here is. I need to come up with a better granularity here.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 5cdcb1cd90..5a70233312 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -247,3 +247,17 @@ void init()
}
}
+void log_try_lock(const char* where)
+{
+ kprintf("[%u] >>> locking... (%s)\n", current->pid(), where);
+}
+
+void log_locked(const char* where)
+{
+ kprintf("[%u] >>> locked() in %s\n", current->pid(), where);
+}
+
+void log_unlocked(const char* where)
+{
+ kprintf("[%u] <<< unlocked()\n", current->pid(), where);
+}