ia64/xen-unstable

changeset 414:3156338887d4

bitkeeper revision 1.201 (3eb15dec8MXwnOKDkCBFmw-7vEXcGQ)

kernel.c:
Clean up Xen output to VGA console.
author kaf24@scramble.cl.cam.ac.uk
date Thu May 01 17:48:28 2003 +0000 (2003-05-01)
parents 7fb2646bf479
children 34407efa21dc a1275253dbd1
files xen/common/kernel.c
line diff
     1.1 --- a/xen/common/kernel.c	Thu May 01 16:24:58 2003 +0000
     1.2 +++ b/xen/common/kernel.c	Thu May 01 17:48:28 2003 +0000
     1.3 @@ -233,7 +233,6 @@ void init_serial(void)
     1.4  void putchar_serial(unsigned char c)
     1.5  {
     1.6      if ( c == '\n' ) putchar_serial('\r');
     1.7 -    if ( (c != '\n') && (c != '\r') && ((c < 32) || (c > 126)) ) return;
     1.8      while ( !(inb(SERIAL_BASE+LINE_STATUS)&(1<<5)) ) barrier();
     1.9      outb(c, SERIAL_BASE+TX_HOLD);
    1.10  }
    1.11 @@ -315,9 +314,11 @@ static void putchar (int c)
    1.12  {
    1.13      static char zeroarr[2*COLUMNS] = { 0 };
    1.14  
    1.15 +    if ( (c != '\n') && ((c < 32) || (c > 126)) ) return;
    1.16 +
    1.17      putchar_serial(c);
    1.18  
    1.19 -    if (c == '\n' || c == '\r')
    1.20 +    if ( c == '\n' )
    1.21      {
    1.22      newline:
    1.23          xpos = 0;