Date: Wed, 19 Jan 2011 19:50:56 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Konstantin Belousov <kib@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r217564 - head/sys/amd64/amd64 Message-ID: <20110119185056.GA2178@garage.freebsd.pl> In-Reply-To: <201101182300.p0IN0MJ4055088@svn.freebsd.org> References: <201101182300.p0IN0MJ4055088@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 18, 2011 at 11:00:22PM +0000, Konstantin Belousov wrote: > Author: kib > Date: Tue Jan 18 23:00:22 2011 > New Revision: 217564 > URL: http://svn.freebsd.org/changeset/base/217564 >=20 > Log: > Make the length of the LDT a loader tunable, machdep.max_ldt_segment, > and export it with read-only sysctl. Remove unused defines. > =20 > Reviewed by: jhb (previous version) > MFC after: 1 week >=20 > Modified: > head/sys/amd64/amd64/sys_machdep.c >=20 > Modified: head/sys/amd64/amd64/sys_machdep.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/amd64/amd64/sys_machdep.c Tue Jan 18 22:56:10 2011 (r217563) > +++ head/sys/amd64/amd64/sys_machdep.c Tue Jan 18 23:00:22 2011 (r217564) > @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); > =20 > #include <sys/param.h> > #include <sys/systm.h> > +#include <sys/kernel.h> > #include <sys/lock.h> > #include <sys/malloc.h> > #include <sys/mutex.h> > @@ -58,9 +59,24 @@ __FBSDID("$FreeBSD$"); > =20 > #include <security/audit/audit.h> > =20 > +#define MAX_LD 8192 > + > int max_ldt_segment =3D 1024; > -#define LD_PER_PAGE 512 > -#define NULL_LDT_BASE ((caddr_t)NULL) > +SYSCTL_INT(_machdep, OID_AUTO, max_ldt_segment, CTLFLAG_RD, &max_ldt_seg= ment, Please, use CTLFLAG_RDTUN if tunable also exist. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk03Mo8ACgkQForvXbEpPzQeaACgipel8IRG4oTIMh3p3k0n8HzF U9oAnR/6WUyeM7LL5N3aIKryUc5t3ECk =lOk5 -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110119185056.GA2178>