Date: Mon, 30 Aug 2010 13:08:13 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org Subject: svn commit: r211995 - stable/6/sys/i386/i386 Message-ID: <201008301308.o7UD8D3g095624@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Mon Aug 30 13:08:13 2010 New Revision: 211995 URL: http://svn.freebsd.org/changeset/base/211995 Log: MFC r182959: Remove warning about static LDT segment allocation. Applications continue using it after ~7 years since warning was introduced, and there is no reason to discourage them. PR: kern/124111 Approved by: kib (mentor) Modified: stable/6/sys/i386/i386/sys_machdep.c Directory Properties: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/cxgb/ (props changed) Modified: stable/6/sys/i386/i386/sys_machdep.c ============================================================================== --- stable/6/sys/i386/i386/sys_machdep.c Mon Aug 30 13:05:21 2010 (r211994) +++ stable/6/sys/i386/i386/sys_machdep.c Mon Aug 30 13:08:13 2010 (r211995) @@ -500,9 +500,6 @@ i386_get_ldt(td, uap) return(error); } -static int ldt_warnings; -#define NUM_LDT_WARNINGS 10 - int i386_set_ldt(td, uap, descs) struct thread *td; @@ -549,12 +546,6 @@ i386_set_ldt(td, uap, descs) } if (!(uap->start == LDT_AUTO_ALLOC && uap->num == 1)) { - /* complain a for a while if using old methods */ - if (ldt_warnings++ < NUM_LDT_WARNINGS) { - printf("Warning: pid %d used static ldt allocation.\n", - td->td_proc->p_pid); - printf("See the i386_set_ldt man page for more info\n"); - } /* verify range of descriptors to modify */ largest_ld = uap->start + uap->num; if (uap->start >= MAX_LD ||
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008301308.o7UD8D3g095624>