Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern Soft-fail xcall thread creation to...



details:   https://anonhg.NetBSD.org/src/rev/bb5b2264e079
branches:  trunk
changeset: 749580:bb5b2264e079
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Dec 03 12:16:36 2009 +0000

description:
Soft-fail xcall thread creation to make RUMP_THREADS=0 work again.

diffstat:

 sys/rump/librump/rumpkern/threads.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r b0d3ae6a4678 -r bb5b2264e079 sys/rump/librump/rumpkern/threads.c
--- a/sys/rump/librump/rumpkern/threads.c       Thu Dec 03 11:54:09 2009 +0000
+++ b/sys/rump/librump/rumpkern/threads.c       Thu Dec 03 12:16:36 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: threads.c,v 1.4 2009/12/01 09:50:51 pooka Exp $        */
+/*     $NetBSD: threads.c,v 1.5 2009/12/03 12:16:36 pooka Exp $        */
 
 /*
  * Copyright (c) 2007-2009 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: threads.c,v 1.4 2009/12/01 09:50:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: threads.c,v 1.5 2009/12/03 12:16:36 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -119,6 +119,10 @@
                        printf("rump warning: threads not enabled, not enabling"
                           " UNP garbage collection\n");
                        return 0;
+               } else if (strncmp(thrstore, "xcall", sizeof("xcall")-1) == 0) {
+                       printf("rump warning: threads not enabled, CPU xcall"
+                          " not functional\n");
+                       return 0;
                } else
                        panic("threads not available, setenv RUMP_THREADS 1");
        }



Home | Main Index | Thread Index | Old Index