Skip to content

Commit

Permalink
MFC r182959:
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
TijlCoosemans committed Aug 30, 2010
1 parent 12cf657 commit 6779be1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sys/i386/i386/sys_machdep.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ||
Expand Down

0 comments on commit 6779be1

Please sign in to comment.