MFC r268383:
Correct si_code for the SIGBUS signal generated by the alignment trap.
This commit is contained in:
parent
a62685c6c1
commit
c2d1e1826f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user