diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-10-18 05:53:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-10-18 05:53:48 +0000 |
commit | 8f0ae882ea8494b1c77859ed42f6f20e58573ad4 (patch) | |
tree | 32d30321721065ce939d16f3b6f406797a33c73d /sys | |
parent | ae37b774c781475c70cc42f6afee83c1c75001c6 (diff) |
Use PSR_IND rather than recomputing it from PSR_INTERRUPT_DISABLE_BIT;
spotted by martin.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/luna88k/ddb/db_interface.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/ddb/db_interface.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/luna88k/ddb/db_interface.c b/sys/arch/luna88k/ddb/db_interface.c index 9067a486732..da4b07dc6d7 100644 --- a/sys/arch/luna88k/ddb/db_interface.c +++ b/sys/arch/luna88k/ddb/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.4 2005/10/13 19:48:28 miod Exp $ */ +/* $OpenBSD: db_interface.c,v 1.5 2005/10/18 05:53:45 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -386,7 +386,7 @@ m88k_db_trap(type, frame) struct trapframe *frame; { - if (get_psr() & (1 << PSR_INTERRUPT_DISABLE_BIT)) + if (get_psr() & PSR_IND) db_printf("WARNING: entered debugger with interrupts disabled\n"); switch(type) { diff --git a/sys/arch/mvme88k/ddb/db_interface.c b/sys/arch/mvme88k/ddb/db_interface.c index 402b3572585..a466f91a78c 100644 --- a/sys/arch/mvme88k/ddb/db_interface.c +++ b/sys/arch/mvme88k/ddb/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.45 2005/10/13 19:48:34 miod Exp $ */ +/* $OpenBSD: db_interface.c,v 1.46 2005/10/18 05:53:47 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -388,7 +388,7 @@ m88k_db_trap(type, frame) struct trapframe *frame; { - if (get_psr() & (1 << PSR_INTERRUPT_DISABLE_BIT)) + if (get_psr() & PSR_IND) db_printf("WARNING: entered debugger with interrupts disabled\n"); switch(type) { |