Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2012 16:55:56 +0000
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Hartmut Brandt <harti@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r235777 - head/sys/kern
Message-ID:  <8BFFA477-46C2-49F6-804F-6D38B10AE7F7@FreeBSD.org>
In-Reply-To: <201205220723.q4M7Ng2I091715@svn.freebsd.org>
References:  <201205220723.q4M7Ng2I091715@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 22. May 2012, at 07:23 , Hartmut Brandt wrote:

> Author: harti
> Date: Tue May 22 07:23:41 2012
> New Revision: 235777
> URL: http://svn.freebsd.org/changeset/base/235777
>=20
> Log:
>  Make dumptid non-static. It is used by libkvm to detect whether
>  this is a VNET-kernel or not.

Just for clarifications - it's used to detect whether we are operating =
on
a crash dump or not in the vnet case.


> gcc used to put the static symbol into
>  the symbol table, clang does not. This fixes the 'netstat: no =
namelist'
>  error seen on clang+VNET systems.
>=20
> Modified:
>  head/sys/kern/kern_shutdown.c
>=20
> Modified: head/sys/kern/kern_shutdown.c
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
> --- head/sys/kern/kern_shutdown.c	Tue May 22 07:04:23 2012	=
(r235776)
> +++ head/sys/kern/kern_shutdown.c	Tue May 22 07:23:41 2012	=
(r235777)
> @@ -151,7 +151,7 @@ static struct dumperinfo dumper;	/* our=20
>=20
> /* Context information for dump-debuggers. */
> static struct pcb dumppcb;		/* Registers. */
> -static lwpid_t dumptid;			/* Thread ID. */
> +lwpid_t dumptid;			/* Thread ID. */
>=20
> static void poweroff_wait(void *, int);
> static void shutdown_halt(void *junk, int howto);

--=20
Bjoern A. Zeeb                                 You have to have visions!
   It does not matter how good you are. It matters what good you do!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8BFFA477-46C2-49F6-804F-6D38B10AE7F7>