Changeset 481c520 in mainline for arch/ia64/src/ski/ski.c


Ignore:
Timestamp:
2006-02-27T12:30:11Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02f441c0
Parents:
4a2b52f
Message:

sparc64 work.
Revive OFW console code and use it before the kernel switches to standalone console.

ia32 + ia64 cosmetic changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/src/ski/ski.c

    r4a2b52f r481c520  
    8787
    8888/**
    89         This is blocking wrap function of ski_getchar
    90         It active waits ... for using with non-stable kernel
    91 */
     89 * This is a blocking wrapper for ski_getchar().
     90 * To be used when the kernel crashes.
     91 */
    9292static char ski_getchar_blocking(chardev_t *d)
    9393{
    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';
    97100        return (char) ch;
    98101}
    99 
    100102
    101103/** Ask keyboard if a key was pressed. */
Note: See TracChangeset for help on using the changeset viewer.