Module Name: src Committed By: matt Date: Mon Jan 17 08:26:58 UTC 2011
Modified Files: src/sys/kern: kern_lwp.c Log Message: If LWP0_MD_INITIALIZER is defined, use it to initalize .l_md (avoid runtime to do it if possible). To generate a diff of this commit: cvs rdiff -u -r1.153 -r1.154 src/sys/kern/kern_lwp.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_lwp.c diff -u src/sys/kern/kern_lwp.c:1.153 src/sys/kern/kern_lwp.c:1.154 --- src/sys/kern/kern_lwp.c:1.153 Fri Jan 14 02:06:34 2011 +++ src/sys/kern/kern_lwp.c Mon Jan 17 08:26:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lwp.c,v 1.153 2011/01/14 02:06:34 rmind Exp $ */ +/* $NetBSD: kern_lwp.c,v 1.154 2011/01/17 08:26:58 matt Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -211,7 +211,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.153 2011/01/14 02:06:34 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.154 2011/01/17 08:26:58 matt Exp $"); #include "opt_ddb.h" #include "opt_lockdebug.h" @@ -266,6 +266,9 @@ #ifdef LWP0_CPU_INFO .l_cpu = LWP0_CPU_INFO, #endif +#ifdef LWP0_MD_INITIALIZER + .l_md = LWP0_MD_INITIALIZER, +#endif .l_proc = &proc0, .l_lid = 1, .l_flag = LW_SYSTEM,