Date: Tue, 15 Jul 2014 10:04:09 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r268662 - in stable/9/sys: amd64/amd64 i386/i386 Message-ID: <201407151004.s6FA49V3069962@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Jul 15 10:04:09 2014 New Revision: 268662 URL: http://svnweb.freebsd.org/changeset/base/268662 Log: MFC r268383: Correct si_code for the SIGBUS signal generated by the alignment trap. Modified: stable/9/sys/amd64/amd64/trap.c stable/9/sys/i386/i386/trap.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/amd64/amd64/trap.c ============================================================================== --- stable/9/sys/amd64/amd64/trap.c Tue Jul 15 10:01:33 2014 (r268661) +++ stable/9/sys/amd64/amd64/trap.c Tue Jul 15 10:04:09 2014 (r268662) @@ -345,6 +345,10 @@ trap(struct trapframe *frame) i = SIGBUS; ucode = BUS_OBJERR; break; + case T_ALIGNFLT: + i = SIGBUS; + ucode = BUS_ADRALN; + break; case T_DOUBLEFLT: /* double fault */ default: i = SIGBUS; Modified: stable/9/sys/i386/i386/trap.c ============================================================================== --- stable/9/sys/i386/i386/trap.c Tue Jul 15 10:01:33 2014 (r268661) +++ stable/9/sys/i386/i386/trap.c Tue Jul 15 10:04:09 2014 (r268662) @@ -397,6 +397,10 @@ trap(struct trapframe *frame) i = SIGBUS; ucode = BUS_OBJERR; break; + case T_ALIGNFLT: + i = SIGBUS; + ucode = BUS_ADRALN; + break; case T_DOUBLEFLT: /* double fault */ default: i = SIGBUS;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407151004.s6FA49V3069962>