From: guenther Date: Sun, 16 Apr 2023 05:39:33 +0000 (+0000) Subject: Both trap 21 (T_CP) and trap 17 (T_ALIGNFLT) supply an error code X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=06703877991c267cff1772f28ca91f553150dd2b;p=openbsd Both trap 21 (T_CP) and trap 17 (T_ALIGNFLT) supply an error code in hardware; use TRAP() instead of ZTRAP(). T_ALIGNFLT fixed in NetBSD on 2012-4-21 ok deraadt@ jsg@ --- diff --git a/sys/arch/amd64/amd64/vector.S b/sys/arch/amd64/amd64/vector.S index c246b67acef..c56c4b00cb4 100644 --- a/sys/arch/amd64/amd64/vector.S +++ b/sys/arch/amd64/amd64/vector.S @@ -1,4 +1,4 @@ -/* $OpenBSD: vector.S,v 1.90 2023/04/15 01:42:20 jsg Exp $ */ +/* $OpenBSD: vector.S,v 1.91 2023/04/16 05:39:33 guenther Exp $ */ /* $NetBSD: vector.S,v 1.5 2004/06/28 09:13:11 fvdl Exp $ */ /* @@ -353,7 +353,7 @@ IDTVEC_NOALIGN(trap0f) IDTVEC(trap10) ZTRAP(T_ARITHTRAP) IDTVEC(trap11) - ZTRAP(T_ALIGNFLT) + TRAP(T_ALIGNFLT) IDTVEC(trap12) ZTRAP(T_MCA) IDTVEC(trap13) @@ -361,7 +361,7 @@ IDTVEC(trap13) IDTVEC(trap14) ZTRAP(T_VE) IDTVEC(trap15) - ZTRAP(T_CP) + TRAP(T_CP) IDTVEC(trap16) IDTVEC_NOALIGN(trap17) IDTVEC_NOALIGN(trap18)