direct-io.hg

changeset 8470:2a873f8020ae

mixup during reorganization. when SIF_INITDOMAIN it should kcons_write_dom0

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vhanquez@kneesa.uk.xensource.com
date Tue Jan 03 13:03:35 2006 +0000 (2006-01-03)
parents 994e8ee5179d
children 9fedfb8cb1b2
files linux-2.6-xen-sparse/drivers/xen/console/console.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/console/console.c	Sat Dec 31 20:17:45 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c	Tue Jan 03 13:03:35 2006 +0000
     1.3 @@ -315,12 +315,12 @@ static void __xencons_tx_flush(void)
     1.4  	int sent, sz, work_done = 0;
     1.5  
     1.6  	if (x_char) {
     1.7 -		if (xen_start_info->flags & SIF_INITDOMAIN) {
     1.8 +		if (xen_start_info->flags & SIF_INITDOMAIN)
     1.9 +			kcons_write_dom0(NULL, &x_char, 1);
    1.10 +		else
    1.11  			while (x_char)
    1.12  				if (xencons_ring_send(&x_char, 1) == 1)
    1.13  					break;
    1.14 -		} else
    1.15 -			kcons_write_dom0(NULL, &x_char, 1);
    1.16  		x_char = 0;
    1.17  		work_done = 1;
    1.18  	}