Added an asynchronous sys_null_async() call and wrappers
[akaros.git] / lib / null.c
1 // Simple implementation of cprintf console output for the kernel,
2 // based on printfmt() and the kernel console's cputchar().
3
4 #ifdef __DEPUTY__
5 #pragma nodeputy
6 #endif
7
8 #include <inc/types.h>
9 #include <inc/syscall.h>
10 #include <inc/lib.h>
11
12 void null()
13 {
14         sys_null();
15 }
16
17 void null_async(async_desc_t** desc)
18 {
19         current_async_desc = get_async_desc();
20         *desc = current_async_desc;
21         sys_null_async(get_sys_desc(current_async_desc));
22 }