MFC r268383:

Correct si_code for the SIGBUS signal generated by the alignment trap.
This commit is contained in:
kib 2014-07-15 10:01:33 +00:00
parent a62685c6c1
commit c2d1e1826f
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -398,6 +398,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;