From owner-svn-src-head@freebsd.org Wed Mar 28 04:44:53 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27BA4F5B125; Wed, 28 Mar 2018 04:44:53 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D90C74C38; Wed, 28 Mar 2018 04:44:52 +0000 (UTC) (envelope-from o.hartmann@walstatt.org) Received: from freyja.zeit4.iv.bundesimmobilien.de ([87.138.105.249]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Meutp-1fBoRn0qdN-00OYBh; Wed, 28 Mar 2018 06:44:50 +0200 Date: Wed, 28 Mar 2018 06:44:43 +0200 From: "O. Hartmann" To: John Baldwin Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r331650 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux amd64/linux32 cddl/contrib/opensolaris/uts/intel/dtrace cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 i386/i386 i386/linux x86/inc... Message-ID: <20180328064443.6201fd35@freyja.zeit4.iv.bundesimmobilien.de> In-Reply-To: <201803272057.w2RKvpRO068828@repo.freebsd.org> References: <201803272057.w2RKvpRO068828@repo.freebsd.org> Organization: Walstatt MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:RnYJw85xozy1amZgowHcfekgeAaX4xQK4Ud9iX8AORY0mTZq1yy ApiBrR8j0Esl+Khq7QYHKNXsF7zMNvn0/ZWhqeVw08cPshuP3LiSNpfmDyMclbddL3DahtV 0qinCFekXjc4MmWWvOiykfdt4PRei4BHYw4qxyWkV+daOfBk0UhCSR0Ubgx5m/apdL5t0fk 3e2BxSmGWTJnjaUAv0iBg== X-UI-Out-Filterresults: notjunk:1;V01:K0:BlBF6sPbH54=:OXbB6lv1jgNpbfE9V5iIG1 Hej1QMljeuouu1W1dpd41k41DWvfm8z0Bx4QV0ExAFP/l8335kijVNe3yxJ8TahWTTIqgbmRy 0wv0/3S6pdhoTIt+0S642O53+f9lamE1EVyGD3jN3TJdr6AYcXaOE53KEmc/YBdHWk8eoJ/Wi Yp2Tj/il2cqk2co1O3MIFc4PrCm6I6yKiuvdYCMuFqABodkD4hDAqrK32L/dZDG6uNCxVRCka gWB3wdVPIS7IR/rK4FgNAV8m6Yb5WsAhpJjakHlwsGsLzrx7u4fqJJj83QsldHOkdFioeTvj9 o4rsEW+hkbTkOos/vVSd4fcBp29l/Q6b+OTht91yLyN77AgE0S6nSmrdgx9bA4a7fFBK3X+DB b6Z0c7fOGf+4XE9MbqzuBJ8C0qYjVucSKK9oNMlL6b8+RsCl0ptNhw1U9i0I6zDSBIIEeKo2e Qabo7iK5pn9wtBdWq43ASqsSkW57sDV41DLPkFR0Bi08aRB7Lw5GKObKkXAlyzVs+H+ACrfUL gJgWUkAimeDxdzE+rf2JvEc2eFI+f0DbgX+QKZhuiNwWc5mKGnOTKl0IKErrOklJAsa+l4277 l19w7zlqNO3kOFD1BYkO1X1vMYZboQFjnFmD7TV4ue4Zum9fF6bP49GfSduCbup+ST02DmJWO JoITFSL4n2UZsovvD6qTctJdVs9e01iPIQpX3JeaB6HKfwr6S1qPeDT9UuTIE+kxlGD/jlARo gXPalrAIbdUVz8g7VeGLbuU/6xnUfZyacYGBX3I/Nv1Boyd+tj/ikhIOfm6NcaioOBfVnnWmG RT16yGjkY9YNw9fB6tZvO5PogSon52ipXjdl19lc6QzvEWMvE4= X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 04:44:53 -0000 On Tue, 27 Mar 2018 20:57:51 +0000 (UTC) John Baldwin wrote: > Author: jhb > Date: Tue Mar 27 20:57:51 2018 > New Revision: 331650 > URL: https://svnweb.freebsd.org/changeset/base/331650 > > Log: > Remove very old and unused signal information codes. > > These have been supplanted by the MI signal information codes in > since 7.0. The FPE_*_TRAP ones were deprecated even > earlier in 1999. > > PR: 226579 (exp-run) > Reviewed by: kib > Differential Revision: https://reviews.freebsd.org/D14637 > > Modified: > head/sys/amd64/amd64/trap.c > head/sys/amd64/ia32/ia32_signal.c > head/sys/amd64/linux/linux_sysvec.c > head/sys/amd64/linux32/linux32_sysvec.c > head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c > head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c > head/sys/cddl/dev/dtrace/i386/dtrace_subr.c > head/sys/i386/i386/trap.c > head/sys/i386/linux/linux_sysvec.c > head/sys/x86/include/signal.h > head/sys/x86/include/trap.h > > Modified: head/sys/amd64/amd64/trap.c > ============================================================================== > --- head/sys/amd64/amd64/trap.c Tue Mar 27 20:54:57 2018 > (r331649) +++ head/sys/amd64/amd64/trap.c Tue Mar 27 20:57:51 > 2018 (r331650) @@ -95,6 +95,7 @@ PMC_SOFT_DEFINE( , , page_fault, > write); #include > #endif > #include > +#include > #include > > #ifdef KDTRACE_HOOKS > @@ -338,14 +339,14 @@ trap(struct trapframe *frame) > ucode = SEGV_ACCERR; > } else { > signo = SIGBUS; > - ucode = BUS_PAGE_FAULT; > + ucode = T_PAGEFLT; > } > } else if (prot_fault_translation == 1) { > /* > * Always compat mode. > */ > signo = SIGBUS; > - ucode = BUS_PAGE_FAULT; > + ucode = T_PAGEFLT; > } else { > /* > * Always SIGSEGV mode. > > Modified: head/sys/amd64/ia32/ia32_signal.c > ============================================================================== > --- head/sys/amd64/ia32/ia32_signal.c Tue Mar 27 20:54:57 2018 > (r331649) +++ head/sys/amd64/ia32/ia32_signal.c Tue Mar 27 20:57:51 > 2018 (r331650) @@ -82,6 +82,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > #include > +#include > > #ifdef COMPAT_FREEBSD4 > static void freebsd4_ia32_sendsig(sig_t, ksiginfo_t *, sigset_t *); > > Modified: head/sys/amd64/linux/linux_sysvec.c > ============================================================================== > --- head/sys/amd64/linux/linux_sysvec.c Tue Mar 27 20:54:57 > 2018 (r331649) +++ head/sys/amd64/linux/linux_sysvec.c Tue Mar > 27 20:57:51 2018 (r331650) @@ -72,6 +72,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > #include > +#include > > #include > #include > > Modified: head/sys/amd64/linux32/linux32_sysvec.c > ============================================================================== > --- head/sys/amd64/linux32/linux32_sysvec.c Tue Mar 27 20:54:57 > 2018 (r331649) +++ head/sys/amd64/linux32/linux32_sysvec.c Tue > Mar 27 20:57:51 2018 (r331650) @@ -75,6 +75,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > #include > +#include > > #include > #include > > Modified: head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c > ============================================================================== > --- head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c > Tue Mar 27 20:54:57 2018 (r331649) +++ > head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c Tue > Mar 27 20:57:51 2018 (r331650) @@ -52,6 +52,7 @@ #include > #include > #include > +#include > #endif > #include > #ifdef illumos > > Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c > ============================================================================== > --- head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c Tue Mar 27 20:54:57 > 2018 (r331649) +++ head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c > Tue Mar 27 20:57:51 2018 (r331650) @@ -44,6 +44,7 @@ > #include > #include > #include > +#include > #include > > extern void dtrace_getnanotime(struct timespec *tsp); > > Modified: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c > ============================================================================== > --- head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Tue Mar 27 20:54:57 > 2018 (r331649) +++ head/sys/cddl/dev/dtrace/i386/dtrace_subr.c > Tue Mar 27 20:57:51 2018 (r331650) @@ -45,6 +45,7 @@ > #include > #include > #include > +#include > #include > > extern uintptr_t kernelbase; > > Modified: head/sys/i386/i386/trap.c > ============================================================================== > --- head/sys/i386/i386/trap.c Tue Mar 27 20:54:57 2018 (r331649) > +++ head/sys/i386/i386/trap.c Tue Mar 27 20:57:51 2018 (r331650) > @@ -97,6 +97,7 @@ PMC_SOFT_DEFINE( , , page_fault, write); > #include > #endif > #include > +#include > #include > #include > > @@ -416,14 +417,14 @@ user_trctrap_out: > ucode = SEGV_ACCERR; > } else { > signo = SIGBUS; > - ucode = BUS_PAGE_FAULT; > + ucode = T_PAGEFLT; > } > } else if (prot_fault_translation == 1) { > /* > * Always compat mode. > */ > signo = SIGBUS; > - ucode = BUS_PAGE_FAULT; > + ucode = T_PAGEFLT; > } else { > /* > * Always SIGSEGV mode. > > Modified: head/sys/i386/linux/linux_sysvec.c > ============================================================================== > --- head/sys/i386/linux/linux_sysvec.c Tue Mar 27 20:54:57 2018 > (r331649) +++ head/sys/i386/linux/linux_sysvec.c Tue Mar 27 20:57:51 > 2018 (r331650) @@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$"); > #include > #include > #include > +#include > > #include > #include > > Modified: head/sys/x86/include/signal.h > ============================================================================== > --- head/sys/x86/include/signal.h Tue Mar 27 20:54:57 2018 > (r331649) +++ head/sys/x86/include/signal.h Tue Mar 27 20:57:51 > 2018 (r331650) @@ -43,10 +43,6 @@ > #include > #include > > -#if __BSD_VISIBLE > -#include /* codes for SIGILL, SIGFPE */ > -#endif > - > #ifdef __i386__ > typedef int sig_atomic_t; > > > Modified: head/sys/x86/include/trap.h > ============================================================================== > --- head/sys/x86/include/trap.h Tue Mar 27 20:54:57 2018 > (r331649) +++ head/sys/x86/include/trap.h Tue Mar 27 20:57:51 > 2018 (r331650) @@ -66,30 +66,6 @@ > #define T_RESERVED 30 /* reserved (unknown) */ > #define T_DTRACE_RET 32 /* DTrace pid return */ > > -/* XXX most of the following codes aren't used, but could be. */ > - > -/* definitions for */ > -#define ILL_RESAD_FAULT T_RESADFLT > -#define ILL_PRIVIN_FAULT T_PRIVINFLT > -#define ILL_RESOP_FAULT T_RESOPFLT > -#define ILL_ALIGN_FAULT T_ALIGNFLT > -#define ILL_FPOP_FAULT T_FPOPFLT /* coprocessor > operand fault */ - > -/* old FreeBSD macros, deprecated */ > -#define FPE_INTOVF_TRAP 0x1 /* integer overflow */ > -#define FPE_INTDIV_TRAP 0x2 /* integer divide by zero */ > -#define FPE_FLTDIV_TRAP 0x3 /* floating/decimal divide > by zero */ -#define FPE_FLTOVF_TRAP 0x4 /* floating > overflow */ -#define FPE_FLTUND_TRAP 0x5 /* floating > underflow */ -#define FPE_FPU_NP_TRAP 0x6 /* floating > point unit not present */ -#define FPE_SUBRNG_TRAP > 0x7 /* subrange out of bounds */ - > -/* codes for SIGBUS */ > -#define BUS_PAGE_FAULT T_PAGEFLT /* page fault > protection base */ -#define BUS_SEGNP_FAULT > T_SEGNPFLT /* segment not present */ -#define > BUS_STK_FAULT T_STKFLT /* stack segment */ -#define > BUS_SEGM_FAULT T_RESERVED /* segment protection base */ - > /* Trap's coming from user mode */ > #define T_USER 0x100 > > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" make buildkernel fails now with the error: [...] --- machdep.o --- /usr/src/sys/amd64/amd64/machdep.c:520:20: error: use of undeclared identifier 'T_PROTFLT' ksi.ksi_trapno = T_PROTFLT; ^ --- modules-all --- [...]