svn commit: r183945 - user/netchild/misc/src/sys/i386/i386

Alexander Leidinger netchild at FreeBSD.org
Thu Oct 16 10:44:42 UTC 2008


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 ||


More information about the svn-src-user mailing list