Rework x86_64 paging and vmm
This commit is contained in:
@ -2,8 +2,21 @@
|
||||
#define KPRINTF_H_
|
||||
|
||||
#include <printf/printf.h>
|
||||
#include "term/term.h"
|
||||
#include "spinlock/spinlock.h"
|
||||
|
||||
#define kprintf(fmt, ...) \
|
||||
do { \
|
||||
spinlock_acquire(&TERM.spinlock); \
|
||||
printf_(fmt, ##__VA_ARGS__); \
|
||||
spinlock_release(&TERM.spinlock); \
|
||||
} while(0)
|
||||
|
||||
#define kprintf_unsafe(fmt, ...) \
|
||||
do { \
|
||||
printf_(fmt, ##__VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
#define kprintf printf_
|
||||
#define ksprintf sprintf_
|
||||
#define kvsprintf vsprintf_
|
||||
#define ksnprintf snprintf_
|
||||
|
Reference in New Issue
Block a user