svn commit: r268662 - in stable/9/sys: amd64/amd64 i386/i386
Konstantin Belousov
kib at FreeBSD.org
Tue Jul 15 10:04:10 UTC 2014
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;
More information about the svn-src-stable-9
mailing list