Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/arch/xen/xen Pull up revision 1.5 (requested by yamt ...



details:   https://anonhg.NetBSD.org/src/rev/f348e7b3c2e8
branches:  netbsd-3
changeset: 575364:f348e7b3c2e8
user:      tron <tron%NetBSD.org@localhost>
date:      Wed Apr 13 21:36:16 2005 +0000

description:
Pull up revision 1.5 (requested by yamt in ticket #144):
xencons_start: retry when queue is full.

diffstat:

 sys/arch/xen/xen/xencons.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 908c63bdaa4a -r f348e7b3c2e8 sys/arch/xen/xen/xencons.c
--- a/sys/arch/xen/xen/xencons.c        Wed Apr 13 21:34:57 2005 +0000
+++ b/sys/arch/xen/xen/xencons.c        Wed Apr 13 21:36:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xencons.c,v 1.4 2005/03/10 21:44:31 bouyer Exp $       */
+/*     $NetBSD: xencons.c,v 1.4.2.1 2005/04/13 21:36:16 tron Exp $     */
 
 /*
  *
@@ -33,7 +33,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xencons.c,v 1.4 2005/03/10 21:44:31 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xencons.c,v 1.4.2.1 2005/04/13 21:36:16 tron Exp $");
 
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -316,9 +316,11 @@
                msg.type = CMSG_CONSOLE;
                msg.subtype = CMSG_CONSOLE_DATA;
                msg.length = len;
-               ctrl_if_send_message_noblock(&msg, NULL, 0);
-               /* XXX check return value and queue wait for space
-                * thread/softint */
+               while (ctrl_if_send_message_noblock(&msg, NULL, 0) == EAGAIN) {
+                       HYPERVISOR_yield();
+                       /* XXX check return value and queue wait for space
+                        * thread/softint */
+               }
        }
 
        s = spltty();



Home | Main Index | Thread Index | Old Index