Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern If LWP0_MD_INITIALIZER is defined, use it to inital...



details:   https://anonhg.NetBSD.org/src/rev/99516302faab
branches:  trunk
changeset: 760924:99516302faab
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 17 08:26:58 2011 +0000

description:
If LWP0_MD_INITIALIZER is defined, use it to initalize .l_md (avoid runtime
to do it if possible).

diffstat:

 sys/kern/kern_lwp.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 0134b72e230b -r 99516302faab sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c       Mon Jan 17 08:23:53 2011 +0000
+++ b/sys/kern/kern_lwp.c       Mon Jan 17 08:26:58 2011 +0000
@@ -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,



Home | Main Index | Thread Index | Old Index