summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include/db_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/include/db_machdep.h')
-rw-r--r--sys/arch/hppa/include/db_machdep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/db_machdep.h b/sys/arch/hppa/include/db_machdep.h
index 0cede97b7eb..c8f70a65367 100644
--- a/sys/arch/hppa/include/db_machdep.h
+++ b/sys/arch/hppa/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.22 2021/08/30 08:11:12 jasper Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.23 2022/02/15 00:27:11 jsg Exp $ */
/*
* Copyright (c) 1998-2005 Michael Shalayeff
@@ -63,7 +63,8 @@ static __inline int inst_return(u_int ins) {
(ins & 0xfc000000) == 0xe0000000;
}
static __inline int inst_trap_return(u_int ins) {
- return (ins & 0xfc001fc0) == 0x00000ca0;
+ return (ins & 0xfc001fff) == 0x00000c00 || /* rfi */
+ (ins & 0xfc001fff) == 0x00000ca0; /* rfir */
}
#if 0