Terminal lock

This commit is contained in:
2025-09-07 22:23:41 +02:00
parent 80a788617e
commit 659f98910d
3 changed files with 4 additions and 0 deletions

View File

@ -7,7 +7,9 @@
#define kprintf(fmt, ...) \
do { \
spinlock_acquire(&TERM.spinlock); \
printf_(fmt, ##__VA_ARGS__); \
spinlock_release(&TERM.spinlock); \
} while(0)
#define ksprintf sprintf_