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;
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to