Date: Thu, 16 Oct 2008 10:44:42 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r183945 - user/netchild/misc/src/sys/i386/i386 Message-ID: <200810161044.m9GAig9Q058616@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: netchild Date: Thu Oct 16 10:44:42 2008 New Revision: 183945 URL: http://svn.freebsd.org/changeset/base/183945 Log: I prefer LDT warnings. Basically this is a backout of r??? (including typos). Modified: user/netchild/misc/src/sys/i386/i386/sys_machdep.c Modified: user/netchild/misc/src/sys/i386/i386/sys_machdep.c ============================================================================== --- user/netchild/misc/src/sys/i386/i386/sys_machdep.c Thu Oct 16 10:42:10 2008 (r183944) +++ user/netchild/misc/src/sys/i386/i386/sys_machdep.c Thu Oct 16 10:44:42 2008 (r183945) @@ -635,6 +635,12 @@ 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 (%s) used static ldt allocation.\n", + td->td_proc->p_pid, td->td_proc->p_comm); + 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?200810161044.m9GAig9Q058616>