Subject: CVS commit: src/sys/arch/xen/xen
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 01/07/2007 00:02:37
Module Name:	src
Committed By:	bouyer
Date:		Sun Jan  7 00:02:36 UTC 2007

Modified Files:
	src/sys/arch/xen/xen: xencons.c

Log Message:
- Add or change memory barrier to reflect the related operation
- In xencons_handler(), update in_cons inside the loop, otherwise,
  we would trigger the xenconscn_getc() workaround wich reset cons and prod
  to their original values, and this creates an infinite loop

Should fix the console hang reported by several users on port-xen@.


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 src/sys/arch/xen/xen/xencons.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.