mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: finish work of removing interruptible mutexes
This commit is contained in:
@@ -18,7 +18,7 @@ extern mutex_t printf_mutex;
|
||||
|
||||
#define printf(...) { \
|
||||
if (likely(current_thread())) {\
|
||||
MUTEX_ACQUIRE(&printf_mutex, false); \
|
||||
MUTEX_ACQUIRE(&printf_mutex); \
|
||||
} else { \
|
||||
while (MUTEX_TRY(&printf_mutex) == false) CPU_PAUSE(); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user