Rev 588 | Rev 607 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 588 | Rev 601 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | 37 | ||
38 | /** Standard input character device. */ |
38 | /** Standard input character device. */ |
39 | chardev_t *stdin = NULL; |
39 | chardev_t *stdin = NULL; |
40 | chardev_t *stdout = NULL; |
40 | chardev_t *stdout = NULL; |
41 | 41 | ||
42 | /** Get character from character device. |
42 | /** Get character from character device. Do not echo character. |
43 | * |
43 | * |
44 | * @param chardev Character device. |
44 | * @param chardev Character device. |
45 | * |
45 | * |
46 | * @return Character read. |
46 | * @return Character read. |
47 | */ |
47 | */ |
48 | static __u8 _getc(chardev_t *chardev) |
48 | __u8 _getc(chardev_t *chardev) |
49 | { |
49 | { |
50 | __u8 ch; |
50 | __u8 ch; |
51 | ipl_t ipl; |
51 | ipl_t ipl; |
52 | 52 | ||
53 | waitq_sleep(&chardev->wq); |
53 | waitq_sleep(&chardev->wq); |