]> pd.if.org Git - zos/blob - kernel.h
add a readme with a public domain note
[zos] / kernel.h
1 #ifndef KERNEL_H_
2 #define KERNEL_H_
3
4 #include <stdint.h>
5 #include <stdarg.h>
6 #include <stddef.h>
7
8 void terminal_putchar(int ch);
9 int printk(const char *fmt, ...);
10 void klog(int level, const char *fmt, ...);
11 void panic(const char *fmt, ...);
12 int printkv(const char *fmt, va_list ap);
13
14 void *memmove(void *s1, const void *s2, size_t n);
15
16 /* in bootz.s */
17 void halt(); /* this will return after a ret, waitforinterrupt() might be better */
18 void allstop();
19
20 #endif