Date: Tue, 23 May 2017 22:34:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318761 - in head/sys: i386/i386 x86/include Message-ID: <201705232234.v4NMYIOE055164@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Tue May 23 22:34:18 2017 New Revision: 318761 URL: https://svnweb.freebsd.org/changeset/base/318761 Log: Remove the BSD/OS 2.1 system call gate LDT entry. An extra copy of the system call gate was added to the default LDT back in 1996 (r18513 / r18514). However, the ability to run BSD/OS 2.1 i386 binaries under FreeBSD's native ABI is most likely no longer needed. Discussed with: kib Modified: head/sys/i386/i386/machdep.c head/sys/x86/include/segments.h Modified: head/sys/i386/i386/machdep.c ============================================================================== --- head/sys/i386/i386/machdep.c Tue May 23 22:30:15 2017 (r318760) +++ head/sys/i386/i386/machdep.c Tue May 23 22:34:18 2017 (r318761) @@ -2446,10 +2446,6 @@ init386(int first) gdp->gd_p = 1; gdp->gd_hioffset = x >> 16; - /* XXX does this work? */ - /* XXX yes! */ - ldt[LBSDICALLS_SEL] = ldt[LSYS5CALLS_SEL]; - /* transfer to user mode */ _ucodesel = GSEL(GUCODE_SEL, SEL_UPL); Modified: head/sys/x86/include/segments.h ============================================================================== --- head/sys/x86/include/segments.h Tue May 23 22:30:15 2017 (r318760) +++ head/sys/x86/include/segments.h Tue May 23 22:34:18 2017 (r318761) @@ -252,8 +252,7 @@ union descriptor { #define LUDATA_SEL 5 /* separate stack, es,fs,gs sels ? */ /* #define LPOSIXCALLS_SEL 5*/ /* notyet */ -#define LBSDICALLS_SEL 16 /* BSDI system call gate */ -#define NLDT (LBSDICALLS_SEL + 1) +#define NLDT (LUDATA_SEL + 1) #else /* !__i386__ */ /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705232234.v4NMYIOE055164>