diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 0e5766678f6d..c56b99e434b1 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -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; diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c index 6e4aba2a2133..5285b1d74583 100644 --- a/sys/i386/i386/trap.c +++ b/sys/i386/i386/trap.c @@ -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;