syscall: add lots of syscalls
This commit is contained in:
9
syscall/log.c
Normal file
9
syscall/log.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <kernel/printk.h>
|
||||
#include <kernel/sched.h>
|
||||
|
||||
kern_status_t sys_kern_log(const char *s)
|
||||
{
|
||||
struct task *task = current_task();
|
||||
printk("%s: %s", task->t_name, s);
|
||||
return KERN_OK;
|
||||
}
|
||||
Reference in New Issue
Block a user