Module Name:    src
Committed By:   riastradh
Date:           Fri Aug  4 16:02:01 UTC 2023

Modified Files:
        src/sys/kern: kern_entropy.c

Log Message:
entropy(9): Disable !cold assertion in rump for now.

Evidently rump starts threads before it sets cold = 0, and deferring
the call to rump_thread_allow(NULL) in rump.c rump_init_callback
until after setting cold = 0 doesn't work either -- rump kernels just
hang.  To be investigated -- for now, let's just stop breaking
thousands of tests.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/kern/kern_entropy.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/kern/kern_entropy.c
diff -u src/sys/kern/kern_entropy.c:1.63 src/sys/kern/kern_entropy.c:1.64
--- src/sys/kern/kern_entropy.c:1.63	Fri Aug  4 07:38:53 2023
+++ src/sys/kern/kern_entropy.c	Fri Aug  4 16:02:01 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_entropy.c,v 1.63 2023/08/04 07:38:53 riastradh Exp $	*/
+/*	$NetBSD: kern_entropy.c,v 1.64 2023/08/04 16:02:01 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.63 2023/08/04 07:38:53 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.64 2023/08/04 16:02:01 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1115,7 +1115,9 @@ entropy_thread(void *cookie)
 {
 	bool consolidate;
 
+#ifndef _RUMPKERNEL		/* XXX rump starts threads before cold */
 	KASSERT(!cold);
+#endif
 
 	for (;;) {
 		/*

Reply via email to