Subversion Repositories HelenOS-historic

Rev

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

Rev 522 Rev 523
Line 63... Line 63...
63
    );
63
    );
64
   
64
   
65
    if (ch == '\n') ski_putchar('\r');
65
    if (ch == '\n') ski_putchar('\r');
66
}
66
}
67
 
67
 
68
 
-
 
69
/** Display character on debug console
68
/** Ask debug console if a key was pressed.
70
 *
69
 *
71
 * Use SSC (Simulator System Call) to
70
 * Use SSC (Simulator System Call) to
72
 * get character from debug console.
71
 * get character from debug console.
-
 
72
 *
73
 * Non blocking HW call
73
 * This call is non-blocking.
-
 
74
 *
74
 * @return Returns ascii code of pressed key or 0 if no key pressed
75
 * @return ASCII code of pressed key or 0 if no key pressed.
75
 */
76
 */
76
__s32 ski_getchar(void)
77
__s32 ski_getchar(void)
77
{
78
{
78
    __u64 ch;
79
    __u64 ch;
79
   
80