diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-29 21:54:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-29 22:04:26 +0100 |
commit | e6284a8774b387ec23cda03b2af0ba3dcc09286f (patch) | |
tree | b92a7dcae807f4b5c086f6f23f06748bf6181956 /Kernel/init.cpp | |
parent | bea106fdb2fa29be294e088189aafcd19eb83be3 (diff) | |
download | serenity-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.cpp | 14 |
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); +} |