From owner-svn-src-all@freebsd.org Tue May 23 22:34:19 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C620D784DF; Tue, 23 May 2017 22:34:19 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6E8EB1471; Tue, 23 May 2017 22:34:19 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4NMYIng055166; Tue, 23 May 2017 22:34:18 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4NMYIOE055164; Tue, 23 May 2017 22:34:18 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201705232234.v4NMYIOE055164@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Tue, 23 May 2017 22:34:18 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 May 2017 22:34:19 -0000 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__ */ /*