repo.or.cz
/
mit-jos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
thanks to damocles, two places changed. one relates to the performance boost.
[mit-jos.git]
/
lib
/
console.c
blob
ac7d09c30993470d8ad598e445f2477d869856b8
1
2
#include <inc/string.h>
3
#include <inc/lib.h>
4
5
void
6
cputchar
(
int
ch
)
7
{
8
char
c
=
ch
;
9
10
// Unlike standard Unix's putchar,
11
// the cputchar function _always_ outputs to the system console.
12
sys_cputs
(&
c
,
1
);
13
}
14
15
int
16
getchar
(
void
)
17
{
18
return
sys_cgetc
();
19
}
20
21