Module Name: src
Committed By: pooka
Date: Thu Dec 3 12:16:36 UTC 2009
Modified Files:
src/sys/rump/librump/rumpkern: threads.c
Log Message:
Soft-fail xcall thread creation to make RUMP_THREADS=0 work again.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/librump/rumpkern/threads.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/librump/rumpkern/threads.c
diff -u src/sys/rump/librump/rumpkern/threads.c:1.4 src/sys/rump/librump/rumpkern/threads.c:1.5
--- src/sys/rump/librump/rumpkern/threads.c:1.4 Tue Dec 1 09:50:51 2009
+++ src/sys/rump/librump/rumpkern/threads.c Thu Dec 3 12:16:36 2009
@@ -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");
}