Changeset 481c520 in mainline for arch/ia64/src/ski/ski.c
- Timestamp:
- 2006-02-27T12:30:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02f441c0
- Parents:
- 4a2b52f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/ski/ski.c
r4a2b52f r481c520 87 87 88 88 /** 89 This is blocking wrap function of ski_getchar 90 It active waits ... for using with non-stable kernel91 */89 * This is a blocking wrapper for ski_getchar(). 90 * To be used when the kernel crashes. 91 */ 92 92 static char ski_getchar_blocking(chardev_t *d) 93 93 { 94 volatile int ch; 95 while(!(ch=ski_getchar())); 96 if(ch == '\r') ch = '\n'; 94 int ch; 95 96 while(!(ch=ski_getchar())) 97 ; 98 if(ch == '\r') 99 ch = '\n'; 97 100 return (char) ch; 98 101 } 99 100 102 101 103 /** Ask keyboard if a key was pressed. */
Note:
See TracChangeset
for help on using the changeset viewer.