mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Correct si_code for the SIGBUS signal generated by the alignment trap.
Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
edcb40eb4e
commit
a5244bac2e
2 changed files with 8 additions and 0 deletions
|
|
@ -313,6 +313,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;
|
||||
|
|
|
|||
|
|
@ -366,6 +366,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…
Reference in a new issue