summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2019-12-15 14:21:34 +0000
committerpgoyette <pgoyette@NetBSD.org>2019-12-15 14:21:34 +0000
commit32ff06bed7583d814d3bd109aee8652d13372cd8 (patch)
tree5a5ed3b9fff66d12a6f5610e683207bec26ddcae
parent1c9fbc6927de4dc5494304283d53bf1bf197aa92 (diff)
Initialize the module_hook synchronization variables in rump, too.
Fixes recently reported test failures for dev/sysmon/t_swsensor and net/if_vlan/t_vlan
-rw-r--r--sys/rump/librump/rumpkern/rump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/rump/librump/rumpkern/rump.c b/sys/rump/librump/rumpkern/rump.c
index 3f6c1472668..4b52974b19f 100644
--- a/sys/rump/librump/rumpkern/rump.c
+++ b/sys/rump/librump/rumpkern/rump.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rump.c,v 1.337 2019/12/07 14:55:58 riastradh Exp $ */
+/* $NetBSD: rump.c,v 1.338 2019/12/15 14:21:34 pgoyette Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.337 2019/12/07 14:55:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.338 2019/12/15 14:21:34 pgoyette Exp $");
#include <sys/systm.h>
#define ELFSIZE ARCH_ELFSIZE
@@ -52,6 +52,7 @@ __KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.337 2019/12/07 14:55:58 riastradh Exp $")
#include <sys/ksyms.h>
#include <sys/msgbuf.h>
#include <sys/module.h>
+#include <sys/module_hook.h>
#include <sys/namei.h>
#include <sys/once.h>
#include <sys/percpu.h>
@@ -412,6 +413,7 @@ rump_init(void)
iostat_init();
fd_sys_init();
module_init();
+ module_hook_init();
devsw_init();
pipe_init();
resource_init();