thanks to damocles, two places changed. one relates to the performance boost.
[mit-jos.git] / lib / console.c
blobac7d09c30993470d8ad598e445f2477d869856b8
2 #include <inc/string.h>
3 #include <inc/lib.h>
5 void
6 cputchar(int ch)
8 char c = ch;
10 // Unlike standard Unix's putchar,
11 // the cputchar function _always_ outputs to the system console.
12 sys_cputs(&c, 1);
15 int
16 getchar(void)
18 return sys_cgetc();