Module Name: src Committed By: mbalmer Date: Sat Jul 25 16:23:39 UTC 2009
Modified Files: src/sys/kern: init_main.c Log Message: Allow gpiosim(4) to attach if configured in the kernel configuration. To generate a diff of this commit: cvs rdiff -u -r1.394 -r1.395 src/sys/kern/init_main.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/init_main.c diff -u src/sys/kern/init_main.c:1.394 src/sys/kern/init_main.c:1.395 --- src/sys/kern/init_main.c:1.394 Sun Jul 19 10:11:55 2009 +++ src/sys/kern/init_main.c Sat Jul 25 16:23:39 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: init_main.c,v 1.394 2009/07/19 10:11:55 yamt Exp $ */ +/* $NetBSD: init_main.c,v 1.395 2009/07/25 16:23:39 mbalmer Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.394 2009/07/19 10:11:55 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.395 2009/07/25 16:23:39 mbalmer Exp $"); #include "opt_ddb.h" #include "opt_ipsec.h" @@ -119,6 +119,7 @@ #include "sysmon_taskq.h" #include "sysmon_wdog.h" #include "veriexec.h" +#include "gpiosim.h" #include <sys/param.h> #include <sys/acct.h> @@ -472,7 +473,9 @@ ssp_init(); configure2(); - +#if NGPIOSIM > 0 + config_rootfound("gpiosim", NULL); +#endif /* Now timer is working. Enable preemption. */ kpreempt_enable();