Implement syscalls, hello world from userspace
This commit is contained in:
@ -6,13 +6,6 @@
|
||||
#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)
|
||||
|
Reference in New Issue
Block a user