Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 893 → Rev 892

/kernel/trunk/arch/ia64/src/ski/ski.c
86,20 → 86,18
}
 
/**
* This is a blocking wrapper for ski_getchar().
* To be used when the kernel crashes.
*/
This is blocking wrap function of ski_getchar
It active waits ... for using with non-stable kernel
*/
static char ski_getchar_blocking(chardev_t *d)
{
int ch;
 
while(!(ch=ski_getchar()))
;
if(ch == '\r')
ch = '\n';
volatile int ch;
while(!(ch=ski_getchar()));
if(ch == '\r') ch = '\n';
return (char) ch;
}
 
 
/** Ask keyboard if a key was pressed. */
void poll_keyboard(void)
{