Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/include PR port-hppa/50642: src/sys/arch/hppa/...



details:   https://anonhg.NetBSD.org/src/rev/ff3d9b71543c
branches:  trunk
changeset: 342857:ff3d9b71543c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 11 08:14:08 2016 +0000

description:
PR port-hppa/50642: src/sys/arch/hppa/include/db_machdep.h:118: bad if test ?

Correct the test for rfir and add one for rfi while I'm here.

diffstat:

 sys/arch/hppa/include/db_machdep.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 58cf97a512e6 -r ff3d9b71543c sys/arch/hppa/include/db_machdep.h
--- a/sys/arch/hppa/include/db_machdep.h        Mon Jan 11 07:46:15 2016 +0000
+++ b/sys/arch/hppa/include/db_machdep.h        Mon Jan 11 08:14:08 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.h,v 1.12 2012/01/18 09:35:48 skrll Exp $    */
+/*     $NetBSD: db_machdep.h,v 1.13 2016/01/11 08:14:08 skrll Exp $    */
 
 /*     $OpenBSD: db_machdep.h,v 1.5 2001/02/16 19:20:13 mickey Exp $   */
 
@@ -115,7 +115,8 @@
               (ins & 0xfc000000) == 0xe0000000;
 }
 static __inline int inst_trap_return(u_int ins)        {
-       return (ins & 0xfc001fc0) == 0x00000ca0;
+       return (ins & 0xfc001fe0) == 0x00000c00 ||
+              (ins & 0xfc001fe0) == 0x00000ca0;
 }
 
 #define db_clear_single_step(r)        ((r)->tf_ipsw &= ~PSW_R)



Home | Main Index | Thread Index | Old Index