From 6ad198c72fbbeac62990555c75b572f24ef33cb2 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Sun, 16 Apr 2023 06:43:50 +0000 Subject: call default db_ktrap() with tf_err, not 0 for exception error code ok guenther@ --- sys/arch/amd64/amd64/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 8c9abf64bd7..6069cf3b6aa 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.99 2023/04/16 06:38:50 guenther Exp $ */ +/* $OpenBSD: trap.c,v 1.100 2023/04/16 06:43:49 jsg Exp $ */ /* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */ /*- @@ -329,7 +329,7 @@ kerntrap(struct trapframe *frame) default: we_re_toast: #ifdef DDB - if (db_ktrap(type, 0, frame)) + if (db_ktrap(type, frame->tf_err, frame)) return; #endif trap_print(frame, type); -- cgit v1.2.3