Subversion Repositories HelenOS-historic

Rev

Rev 892 | Rev 1507 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 892 Rev 893
Line 84... Line 84...
84
 
84
 
85
    return (__s32) ch;
85
    return (__s32) ch;
86
}
86
}
87
 
87
 
88
/**
88
/**
89
    This is blocking wrap function of ski_getchar
89
 * This is a blocking wrapper for ski_getchar().
90
    It active waits ... for using with non-stable kernel
90
 * To be used when the kernel crashes.
91
*/
91
 */
92
static char ski_getchar_blocking(chardev_t *d)
92
static char ski_getchar_blocking(chardev_t *d)
93
{
93
{
94
    volatile int ch;
94
    int ch;
-
 
95
 
95
    while(!(ch=ski_getchar()));
96
    while(!(ch=ski_getchar()))
-
 
97
        ;
96
    if(ch == '\r') ch = '\n';
98
    if(ch == '\r')
-
 
99
        ch = '\n';
97
    return (char) ch;
100
    return (char) ch;
98
}
101
}
99
 
102
 
100
 
-
 
101
/** Ask keyboard if a key was pressed. */
103
/** Ask keyboard if a key was pressed. */
102
void poll_keyboard(void)
104
void poll_keyboard(void)
103
{
105
{
104
    char ch;
106
    char ch;
105
 
107